| Index: gdb/testsuite/gdb.trace/collection.exp
|
| diff --git a/gdb/testsuite/gdb.trace/collection.exp b/gdb/testsuite/gdb.trace/collection.exp
|
| index c80334b47e4383ba59dd72b90f3c55c4d24b4c0a..25544b546397dda4f511149b026ddd83b9ce834b 100644
|
| --- a/gdb/testsuite/gdb.trace/collection.exp
|
| +++ b/gdb/testsuite/gdb.trace/collection.exp
|
| @@ -15,19 +15,11 @@
|
|
|
| load_lib "trace-support.exp"
|
|
|
| -if $tracelevel then {
|
| - strace $tracelevel
|
| -}
|
| -
|
|
|
| -set testfile "collection"
|
| -set srcfile ${testfile}.c
|
| +standard_testfile
|
| set executable $testfile
|
| -set binfile $objdir/$subdir/$executable
|
|
|
| -if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
|
| - executable {debug nowarnings}] != "" } {
|
| - untested collection.exp
|
| +if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug nowarnings}]} {
|
| return -1
|
| }
|
|
|
| @@ -780,13 +772,10 @@ proc gdb_trace_collection_test {} {
|
|
|
| }
|
|
|
| -clean_restart $executable
|
| runto_main
|
|
|
| -# We generously give ourselves one "pass" if we successfully
|
| -# detect that this test cannot be run on this target!
|
| if { ![gdb_target_supports_trace] } then {
|
| - pass "Current target does not support trace"
|
| + unsupported "Current target does not support trace"
|
| return 1;
|
| }
|
|
|
|
|