[ob] Skip gdb.stabs/exclfwd.exp if stabs tests are turned off

Daniel Jacobowitz drow@false.org
Thu Jun 22 19:39:00 GMT 2006


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
 #



More information about the Gdb-patches mailing list