aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.gdb
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2010-06-02 21:46:45 +0000
committerMichael Snyder <msnyder@vmware.com>2010-06-02 21:46:45 +0000
commit019ebafccd66a364969a7987cedaf96039ce1d54 (patch)
treefd25f5f9837da887225e6aa4ec23b8af4f87b313 /gdb/testsuite/gdb.gdb
parent3e0ca3a5f8a5cb0db0c1f706c915d3bbb6aab897 (diff)
downloadgdb-019ebafccd66a364969a7987cedaf96039ce1d54.zip
gdb-019ebafccd66a364969a7987cedaf96039ce1d54.tar.gz
gdb-019ebafccd66a364969a7987cedaf96039ce1d54.tar.bz2
2010-06-02 Michael Snyder <msnyder@vmware.com>
* gdb.dwarf2/dw2-basic.exp: Use gdb_test_no_output. * gdb.dwarf2/dw2-compressed.exp: Ditto. * gdb.dwarf2/dw2-intercu.exp: Ditto. * gdb.dwarf2/dw2-intermix.exp: Ditto. * gdb.dwarf2/dw2-producer.exp: Ditto. * gdb.dwarf2/mac-fileno.exp: Ditto. * gdb.gdb/observer.exp: Use gdb_test_no_output. * gdb.gdb/selftest.exp: Ditto. * gdb.multi/base.exp: Use gdb_test_no_output. * gdb.opt/inline-cmds.exp: Use gdb_test_no_output.
Diffstat (limited to 'gdb/testsuite/gdb.gdb')
-rw-r--r--gdb/testsuite/gdb.gdb/observer.exp32
-rw-r--r--gdb/testsuite/gdb.gdb/selftest.exp2
2 files changed, 17 insertions, 17 deletions
diff --git a/gdb/testsuite/gdb.gdb/observer.exp b/gdb/testsuite/gdb.gdb/observer.exp
index ca5854b..fed74a0 100644
--- a/gdb/testsuite/gdb.gdb/observer.exp
+++ b/gdb/testsuite/gdb.gdb/observer.exp
@@ -99,33 +99,33 @@ proc setup_test { executable } {
}
proc attach_first_observer { message } {
- gdb_test "set \$first_obs = observer_attach_test_notification (&observer_test_first_notification_function)" \
- "" "$message; attach first observer"
+ gdb_test_no_output "set \$first_obs = observer_attach_test_notification (&observer_test_first_notification_function)" \
+ "$message; attach first observer"
}
proc attach_second_observer { message } {
- gdb_test "set \$second_obs = observer_attach_test_notification (&observer_test_second_notification_function)" \
- "" "$message; attach second observer"
+ gdb_test_no_output "set \$second_obs = observer_attach_test_notification (&observer_test_second_notification_function)" \
+ "$message; attach second observer"
}
proc attach_third_observer { message } {
- gdb_test "set \$third_obs = observer_attach_test_notification (&observer_test_third_notification_function)" \
- "" "$message; attach third observer"
+ gdb_test_no_output "set \$third_obs = observer_attach_test_notification (&observer_test_third_notification_function)" \
+ "$message; attach third observer"
}
proc detach_first_observer { message } {
- gdb_test "call observer_detach_test_notification (\$first_obs)" \
- "" "$message; detach first observer"
+ gdb_test_no_output "call observer_detach_test_notification (\$first_obs)" \
+ "$message; detach first observer"
}
proc detach_second_observer { message } {
- gdb_test "call observer_detach_test_notification (\$second_obs)" \
- "" "$message; detach second observer"
+ gdb_test_no_output "call observer_detach_test_notification (\$second_obs)" \
+ "$message; detach second observer"
}
proc detach_third_observer { message } {
- gdb_test "call observer_detach_test_notification (\$third_obs)" \
- "" "$message; detach third observer"
+ gdb_test_no_output "call observer_detach_test_notification (\$third_obs)" \
+ "$message; detach third observer"
}
proc check_counters { first second third message } {
@@ -141,11 +141,11 @@ proc check_counters { first second third message } {
}
proc reset_counters { message } {
- gdb_test "set variable observer_test_first_observer = 0" "" \
+ gdb_test_no_output "set variable observer_test_first_observer = 0" \
"$message; reset first observer counter"
- gdb_test "set variable observer_test_second_observer = 0" "" \
+ gdb_test_no_output "set variable observer_test_second_observer = 0" \
"$message; reset second observer counter"
- gdb_test "set variable observer_test_third_observer = 0" "" \
+ gdb_test_no_output "set variable observer_test_third_observer = 0" \
"$message; reset third observer counter"
}
@@ -158,7 +158,7 @@ proc test_notifications { first second third message args } {
# Call observer_notify_test_notification. Note that this procedure
# takes one argument, but this argument is ignored by the observer
# callbacks we have installed. So we just pass an arbitrary value.
- gdb_test "call observer_notify_test_notification (0)" "" \
+ gdb_test_no_output "call observer_notify_test_notification (0)" \
"$message; sending notification"
check_counters $first $second $third $message
}
diff --git a/gdb/testsuite/gdb.gdb/selftest.exp b/gdb/testsuite/gdb.gdb/selftest.exp
index d1574bc..a448cbc 100644
--- a/gdb/testsuite/gdb.gdb/selftest.exp
+++ b/gdb/testsuite/gdb.gdb/selftest.exp
@@ -299,7 +299,7 @@ proc test_with_self { executable } {
# FIXME: If we put this after the run to main, the first list
# command doesn't print the same line as the current line where
# gdb is stopped.
- gdb_test "set listsize 1" "" "set listsize to 1"
+ gdb_test_no_output "set listsize 1" "set listsize to 1"
# run yourself
# It may take a very long time for the inferior gdb to start (lynx),