summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.stabs/exclfwd.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.stabs/exclfwd.exp')
-rw-r--r--gdb/testsuite/gdb.stabs/exclfwd.exp6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.stabs/exclfwd.exp b/gdb/testsuite/gdb.stabs/exclfwd.exp
index 05ab97c0fb0..9d500146393 100644
--- a/gdb/testsuite/gdb.stabs/exclfwd.exp
+++ b/gdb/testsuite/gdb.stabs/exclfwd.exp
@@ -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
#