# This testcase is part of GDB, the GNU debugger.
-# Copyright 2009, 2010 Free Software Foundation, Inc.
+# Copyright 2009-2020 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
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-global srcfile
-set testfile "watch-vfork"
-if { [build_executable ${testfile}.exp ${testfile} ${testfile}.c {debug}] } {
- untested ${testfile}.exp
+standard_testfile .c
+
+if { [build_executable ${testfile}.exp ${testfile} $srcfile {debug}] } {
+ untested "failed to compile"
return -1
}
}
if { ! $hw } {
- gdb_test "set can-use-hw-watchpoints 0" "" ""
+ gdb_test_no_output "set can-use-hw-watchpoints 0" ""
}
gdb_test "watch global" \