Skip tfile.exp if unable to generate trace file

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 I made at the last minute.  Patch below fixed it.

gdb/testsuite:

2014-08-15  Yao Qi  <yao@codesourcery.com>

	* gdb.trace/tfile.exp: Return -1 if generate_tracefile returns
	false.
This commit is contained in:
Yao Qi 2014-08-14 15:24:58 +08:00
parent 7dba4c934c
commit ebcc6c3a7b
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -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} {