diff options
Diffstat (limited to 'gdb/testsuite/gdb.base/watchpoints.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/watchpoints.exp | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/gdb/testsuite/gdb.base/watchpoints.exp b/gdb/testsuite/gdb.base/watchpoints.exp index c26b7667e47..7c10d819dae 100644 --- a/gdb/testsuite/gdb.base/watchpoints.exp +++ b/gdb/testsuite/gdb.base/watchpoints.exp @@ -16,9 +16,7 @@ # This file was written by Pierre Muller. (muller@ics.u-strasbg.fr) -set testfile "watchpoints" -set srcfile ${testfile}.c -set binfile ${objdir}/${subdir}/${testfile} +standard_testfile set wp_set 1 @@ -26,18 +24,11 @@ if [get_compiler_info] { return -1 } -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { - untested watchpoint.exp - return -1 +if {[prepare_for_testing $testfile.exp $testfile $srcfile debug]} { + untested $testfile.exp + return -1 } -# Start with a fresh gdb. - -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir -gdb_load $binfile - # Disable hardware watchpoints if necessary. if [target_info exists gdb,no_hardware_watchpoints] { gdb_test_no_output "set can-use-hw-watchpoints 0" "" |