This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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
 #


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]