+ * gdb.base/break.exp: Don't test for program exit or exit status
+ if $noresults if nonzero.
+ * gdb.base/langs.exp: Likewise.
+ * gdb.base/watchpoint.exp: Likewise.
+
* gdb.base/default.exp: Remove extraneous call to load gdb.exp.
* gdb.chill/pr-8405.exp: Move skip_chill_tests check to just before
trying to compile the testcase.
set bug_id 0
set testfile "watchpoint"
-set srcfile ${srcdir}/$subdir/${testfile}.c
+set srcfile ${testfile}.c
set binfile ${objdir}/${subdir}/${testfile}
-if { [compile "${srcfile} -g -o ${binfile}"] != "" } {
+if { [compile "${srcdir}/${subdir}/${srcfile} -g -o ${binfile}"] != "" } {
perror "Couldn't compile ${srcfile}"
return -1
}
global prompt
global hex
global decimal
+ global noresults
# Ensure that the watchpoint is disabled when we startup.
# Run until process exits.
+ if $noresults==1 then { return }
+
gdb_test "cont" "Continuing.*Program exited normally.*" \
"continue to exit in test_simple_watchpoint"
}
global srcfile
global decimal
global hex
+ global noresults
# Ensure that the watchpoint is disabled when we startup.
gdb_test "cont" "Continuing.*Breakpoint.*marker2 \\(\\).*" \
"disabled watchpoint skipped"
+ if $noresults==1 then { return }
+
gdb_test "cont" "Continuing.*Program exited normally.*" \
"continue to exit in test_disabling_watchpoints"
}