Index: gdb/testsuite/gdb.base/watch-vfork.exp |
diff --git a/gdb/testsuite/gdb.base/watch-vfork.exp b/gdb/testsuite/gdb.base/watch-vfork.exp |
index e8d643aa2d31f2cea256ee1bdb97ea3256059db3..bb1414715ecbf2422d8c3b8fe04f6acb4d9f6be3 100644 |
--- a/gdb/testsuite/gdb.base/watch-vfork.exp |
+++ b/gdb/testsuite/gdb.base/watch-vfork.exp |
@@ -1,6 +1,6 @@ |
# This testcase is part of GDB, the GNU debugger. |
-# Copyright 2009-2012 Free Software Foundation, Inc. |
+# Copyright 2009-2013 Free Software Foundation, Inc. |
# This program is free software; you can redistribute it and/or modify |
# it under the terms of the GNU General Public License as published by |
@@ -20,9 +20,9 @@ if { [is_remote target] } { |
return 0 |
} |
-global srcfile |
-set testfile "watch-vfork" |
-if { [build_executable ${testfile}.exp ${testfile} ${testfile}.c {debug}] } { |
+standard_testfile .c |
+ |
+if { [build_executable ${testfile}.exp ${testfile} $srcfile {debug}] } { |
untested ${testfile}.exp |
return -1 |
} |