From: "Ulrich Weigand" <uweigand@de.ibm.com>
To: msnyder@vmware.com (Michael Snyder)
Cc: gdb-patches@sourceware.org (gdb-patches@sourceware.org),
pedro@codesourcery.com (Pedro Alves)
Subject: Re: [RFA] gdb.trace, replace wildcard regexp
Date: Fri, 11 Jun 2010 23:30:00 -0000 [thread overview]
Message-ID: <201006112330.o5BNUe2i014801@d12av02.megacenter.de.ibm.com> (raw)
In-Reply-To: <4C12BCE7.7010403@vmware.com> from "Michael Snyder" at Jun 11, 2010 03:47:03 PM
Michael Snyder wrote:
> Yeah, but these ones really do fail, when the target can't do
> tracepoints. They need to be run against gdbserver.
>
> Odd, though, most of the trace tests bail early if the target
> can't do tracepoints. They don't give arbitrary failures...
Ah, I see. All the other tests check gdb_target_supports_trace;
this check is missing in packetlen.exp. The patch below adds the
same logic used by the other tests.
Tested on spu-elf, committed to mainline.
Bye,
Ulrich
ChangeLog:
* gdb.trace/packetlen.exp: Respect gdb_target_supports_trace.
Index: gdb/testsuite/gdb.trace/packetlen.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.trace/packetlen.exp,v
retrieving revision 1.15
diff -u -p -r1.15 packetlen.exp
--- gdb/testsuite/gdb.trace/packetlen.exp 8 Jun 2010 22:58:03 -0000 1.15
+++ gdb/testsuite/gdb.trace/packetlen.exp 11 Jun 2010 23:23:34 -0000
@@ -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
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com
prev parent reply other threads:[~2010-06-11 23:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-04 18:05 Michael Snyder
2010-06-08 23:00 ` Michael Snyder
2010-06-11 17:02 ` Ulrich Weigand
2010-06-11 22:47 ` Michael Snyder
2010-06-11 23:30 ` Ulrich Weigand [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201006112330.o5BNUe2i014801@d12av02.megacenter.de.ibm.com \
--to=uweigand@de.ibm.com \
--cc=gdb-patches@sourceware.org \
--cc=msnyder@vmware.com \
--cc=pedro@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox