aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.trace
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2010-06-11 23:25:59 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2010-06-11 23:25:59 +0000
commitf3ce5b9c8d43b60e052f6b003ec0f29e6038c183 (patch)
tree3a17615309fe04dbc3b34a844d8a86c1ce0241a2 /gdb/testsuite/gdb.trace
parent8e46892cd5e4853a197ce44da8d398eb8b38cedb (diff)
downloadgdb-f3ce5b9c8d43b60e052f6b003ec0f29e6038c183.zip
gdb-f3ce5b9c8d43b60e052f6b003ec0f29e6038c183.tar.gz
gdb-f3ce5b9c8d43b60e052f6b003ec0f29e6038c183.tar.bz2
* gdb.trace/packetlen.exp: Respect gdb_target_supports_trace.
Diffstat (limited to 'gdb/testsuite/gdb.trace')
-rw-r--r--gdb/testsuite/gdb.trace/packetlen.exp8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.trace/packetlen.exp b/gdb/testsuite/gdb.trace/packetlen.exp
index be89ee6..16be2a0 100644
--- a/gdb/testsuite/gdb.trace/packetlen.exp
+++ b/gdb/testsuite/gdb.trace/packetlen.exp
@@ -39,6 +39,14 @@ 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"
+ return 1;
+
+}
+
# If testing on a remote host, download the source file.
# remote_download host $srcdir/$subdir/$srcfile