aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/annota1.exp
diff options
context:
space:
mode:
authorDavid Taylor <taylor@redhat.com>2001-03-08 21:09:23 +0000
committerDavid Taylor <taylor@redhat.com>2001-03-08 21:09:23 +0000
commitfc33412a6a4c081d87101199cf3f711f89c29fe3 (patch)
tree1e7b27703870ee07e890fa15242bb831aa208060 /gdb/testsuite/gdb.base/annota1.exp
parent7898dedac0f0bd75d7363d13427c4a1e72b66f66 (diff)
downloadgdb-fc33412a6a4c081d87101199cf3f711f89c29fe3.zip
gdb-fc33412a6a4c081d87101199cf3f711f89c29fe3.tar.gz
gdb-fc33412a6a4c081d87101199cf3f711f89c29fe3.tar.bz2
* gdb.base/annota1.exp: Move test of isnative to earlier in the
file -- to prevent failing when the compile fails but we have no intention of running the tests anyway. * gdb.base/long_long.exp: Test target_info for no_long_long, skip tests if set. * gdb.base/maint.exp: Support 2 byte integers as well as 4 byte integers. * gdb.c++/ctti.exp: Skip tests if skip_cplus_tests returns true. * gdb.c++/namespace.exp: Ditto. Fix PR gdb/16.
Diffstat (limited to 'gdb/testsuite/gdb.base/annota1.exp')
-rw-r--r--gdb/testsuite/gdb.base/annota1.exp22
1 files changed, 11 insertions, 11 deletions
diff --git a/gdb/testsuite/gdb.base/annota1.exp b/gdb/testsuite/gdb.base/annota1.exp
index 370f5b2..4848c67 100644
--- a/gdb/testsuite/gdb.base/annota1.exp
+++ b/gdb/testsuite/gdb.base/annota1.exp
@@ -1,4 +1,4 @@
-# Copyright 1999, 2000
+# Copyright 1999, 2000, 2001
# Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
@@ -25,6 +25,16 @@ if $tracelevel then {
}
+# are we on a target board? If so, don't run these tests.
+# note: this is necessary because we cannot use runto_main (which would
+# work for remote targets too) because of the different prompt we get
+# when using annotation level 2.
+#
+if ![isnative] then {
+ return 0
+}
+
+
#
# test running programs
#
@@ -40,16 +50,6 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
}
-# are we on a target board? If so, don't run these tests.
-# note: this is necessary because we cannot use runto_main (which would
-# work for remote targets too) because of the different prompt we get
-# when using annotation level 2.
-#
-if ![isnative] then {
- return 0
-}
-
-
gdb_exit
gdb_start
gdb_reinitialize_dir $srcdir/$subdir