Index: gdb/testsuite/gdb.trace/packetlen.exp |
diff --git a/gdb/testsuite/gdb.trace/packetlen.exp b/gdb/testsuite/gdb.trace/packetlen.exp |
index e9e42b83490efa5ee1b8bb367469c8424bcda1b3..81f3d7d0a1b669edc89307090945f128c495b59f 100644 |
--- a/gdb/testsuite/gdb.trace/packetlen.exp |
+++ b/gdb/testsuite/gdb.trace/packetlen.exp |
@@ -17,17 +17,11 @@ |
load_lib "trace-support.exp" |
-if $tracelevel then { |
- strace $tracelevel |
-} |
- |
gdb_exit |
gdb_start |
-set testfile "actions" |
-set srcfile ${testfile}.c |
-set binfile $objdir/$subdir/packetlen |
+standard_testfile actions.c |
if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \ |
executable {debug nowarnings}] != "" } { |
untested packetlen.exp |
@@ -39,10 +33,8 @@ gdb_test "tfind none" ".*" "" |
runto_main |
gdb_reinitialize_dir $srcdir/$subdir |
-# 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; |
} |