summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/ending-run.exp
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@specifix.com>2000-10-17 20:00:21 +0000
committerMichael Snyder <msnyder@specifix.com>2000-10-17 20:00:21 +0000
commit77ba3eb1803264ff0d2450625f55941e5006c8c2 (patch)
tree7d347b75395ab5beeb751f0ad6a2f3b98ca6f044 /gdb/testsuite/gdb.base/ending-run.exp
parent42dfbda7b5cfb6ef6b155a4b4d56717a963b8d92 (diff)
downloadgdb-77ba3eb1803264ff0d2450625f55941e5006c8c2.tar.gz
2000-10-16 Michael Snyder <msnyder@cleaver.cygnus.com>
* lib/gdb.exp (gdb_skip_float_test): New proc. Skip test if no floating point support. (gdb_skip_stdio_test): New proc. Skip test if no stdio support. * gdb.base/call-ar-st.exp: Use above procs to skip tests. * gdb.base/call-rt-st.exp: Ditto. * gdb.base/call-strs.exp: Ditto. * gdb.base/sizeof.exp (check_sizeof): Skip if no printf support. * gdb.base/varargs.exp: Skip entire test if no printf support. * gdb.base/ending-run.exp (Step to return): Skip if no printf supt. * gdb.base/shlib-call.exp: Skip several tests if no printf support.
Diffstat (limited to 'gdb/testsuite/gdb.base/ending-run.exp')
-rw-r--r--gdb/testsuite/gdb.base/ending-run.exp8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/ending-run.exp b/gdb/testsuite/gdb.base/ending-run.exp
index 089a8a51058..0a9e92c3d52 100644
--- a/gdb/testsuite/gdb.base/ending-run.exp
+++ b/gdb/testsuite/gdb.base/ending-run.exp
@@ -129,7 +129,13 @@ gdb_expect {
# is output from the program.
#
gdb_test "cont" ".*Breakpoint.*31.*"
-gdb_test "next" ".*1 2 7 14 23 34 47 62 79 Goodbye!.*32.*" "Step to return"
+
+if ![gdb_skip_stdio_test "Step to return"] {
+ gdb_test "next" ".*1 2 7 14 23 34 47 62 79 Goodbye!.*32.*" \
+ "Step to return"
+} else {
+ gdb_test "next" "" ""
+}
set old_timeout $timeout
set timeout 50