Skip tfile.exp if unable to generate trace file
Commit Message
I added proc generate_tracefile in this patch
https://sourceware.org/ml/gdb-patches/2014-03/msg00591.html but
tfile.exp isn't skipped as changelog entry said:
* gdb.trace/tfile.exp: Skip the test if generate_tracefile
return 0.
it is a mistake in test I made at the last minute. Patch below fixed
it. Patch is pushed in.
gdb/testsuite:
2014-08-15 Yao Qi <yao@codesourcery.com>
* gdb.trace/tfile.exp: Return -1 if generate_tracefile returns
false.
---
gdb/testsuite/ChangeLog | 5 +++++
gdb/testsuite/gdb.trace/tfile.exp | 1 +
2 files changed, 6 insertions(+)
@@ -1,5 +1,10 @@
2014-08-15 Yao Qi <yao@codesourcery.com>
+ * gdb.trace/tfile.exp: Return -1 if generate_tracefile returns
+ false.
+
+2014-08-15 Yao Qi <yao@codesourcery.com>
+
* gdb.cp/casts.exp: Set print symbol off.
* gdb.cp/class2.exp: Likewise.
* gdb.cp/overload.exp: Likewise.
@@ -52,6 +52,7 @@ remote_file target delete $tfile_error
if { ![generate_tracefile $binfile] } {
unsupported "Unable to generate trace file"
+ return -1
}
if {!$purely_local} {