[gdb/testsuite] Reduce errors after gdb exit in default_gdb_start
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / watch-vfork.exp
index 8e93179d30b4a54066a072267ad5ef5fad3f2e9f..a88897e34bb62f1d09460b54e53c972a9ef9e1e9 100644 (file)
@@ -1,6 +1,6 @@
 # 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
 }
 
@@ -33,7 +33,7 @@ proc test_watchpoint_across_vfork { hw teststr } {
     }
 
     if { ! $hw } {
-       gdb_test "set can-use-hw-watchpoints 0" "" ""
+       gdb_test_no_output "set can-use-hw-watchpoints 0" ""
     }
 
     gdb_test "watch global" \
This page took 0.026949 seconds and 4 git commands to generate.