This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[ob] Skip gdb.stabs/exclfwd.exp if stabs tests are turned off
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb-patches at sourceware dot org
- Date: Thu, 22 Jun 2006 15:39:34 -0400
- Subject: [ob] Skip gdb.stabs/exclfwd.exp if stabs tests are turned off
testsuite/configure has a bit of logic to enable gdb.stabs for some targets
and disable it for others. weird.exp already checks the result of that
test, but the relatively newer exclfwd.exp didn't. This generated an ERROR
when we tried to compile into gdb.stabs/exclfwd in the object directory;
the directory didn't exist.
Tested and committed.
--
Daniel Jacobowitz
CodeSourcery
2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
* gdb.stabs/exclfwd.exp: Skip the test if configure did not
enable stabs testing.
Index: gdb-20060226/gdb/testsuite/gdb.stabs/exclfwd.exp
===================================================================
--- gdb-20060226.orig/gdb/testsuite/gdb.stabs/exclfwd.exp 2004-04-22 14:11:56.000000000 -0700
+++ gdb-20060226/gdb/testsuite/gdb.stabs/exclfwd.exp 2006-06-13 20:59:53.000000000 -0700
@@ -21,6 +21,12 @@ if $tracelevel {
strace $tracelevel
}
+# If the test directory was not created by configure then skip
+# this test.
+if ![file isdirectory ${objdir}/${subdir}] then {
+ return 0
+}
+
#
# test running programs
#