From: Ulrich Weigand Date: Fri, 11 Jun 2010 23:25:59 +0000 (+0000) Subject: * gdb.trace/packetlen.exp: Respect gdb_target_supports_trace. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f3ce5b9c8d43b60e052f6b003ec0f29e6038c183;p=binutils-gdb.git * gdb.trace/packetlen.exp: Respect gdb_target_supports_trace. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 9a8ca24be29..6bfe3531ecf 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2010-06-11 Ulrich Weigand + + * gdb.trace/packetlen.exp: Respect gdb_target_supports_trace. + 2010-06-11 Jan Kratochvil * lib/gdb.exp (gdb_run_cmd): Return on $gdb_prompt. diff --git a/gdb/testsuite/gdb.trace/packetlen.exp b/gdb/testsuite/gdb.trace/packetlen.exp index be89ee6edcc..16be2a00e22 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