+2012-05-23 Keith Seitz <keiths@redhat.com>
+
+ * gdb.trace/stap-trace.exp: If compile_stap_bin fails,
+ return -1 to suppress the rest of the tests.
+ (compile_stap_bin): Return boolean success value.
+
2012-05-21 Tom Tromey <tromey@redhat.com>
* gdb.cp/inherit.exp (test_print_mi_members): Expect errors.
"$binfile_dir/$exec_name" \
executable [concat $arg debug nowarnings]] != "" } {
untested "Could not compile ${srcfile}"
- return -1
+ return 0
}
+
+ return 1
}
proc prepare_for_trace_test {} {
"collect $msg: collected probe arg0"
}
-compile_stap_bin "stap-probe-nosem"
+if {![compile_stap_bin "stap-probe-nosem"]} {
+ # An appropriate failure message has already been output
+ return -1
+}
clean_restart $executable
if { ![runto_main] } {
gdb_collect_probe_arg "probe args without semaphore" "-probe-stap user" "23"
gdb_exit
-compile_stap_bin "stap-probe-sem" "-DUSE_PROBES"
+if {![compile_stap_bin "stap-probe-sem" "-DUSE_PROBES"]} {
+ # An appropriate failure message has already been output
+ return -1
+}
+
gdb_collect_probe_arg "probe args with semaphore" "-probe-stap two" "46"
# Finished!