From: Randolph Chung <randolph@tausq.org>
To: gdb-patches@sources.redhat.com
Subject: [patch/rfa] fix thread_check test
Date: Tue, 23 Nov 2004 23:16:00 -0000 [thread overview]
Message-ID: <20041123231559.GV9148@tausq.org> (raw)
i don't think this has ever worked for anybody... :)
The test program name in this test case doesn't match what's in the
testsuite. The regular expression was wrong as well.
Patch tested on hppa-linux. ok to check in? this should give (almost)
everbody 2 more PASSes on their testsuite results.
randolph
2004-11-23 Randolph Chung <tausq@debian.org>
testsuite/
* gdb.threads/thread_check.exp: Use $srcfile for test program name
instead of "tbug". Fix regexp to work properly with gdb_test.
Index: testsuite/gdb.threads/thread_check.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.threads/thread_check.exp,v
retrieving revision 1.1
diff -u -p -r1.1 thread_check.exp
--- testsuite/gdb.threads/thread_check.exp 31 Aug 2004 20:01:13 -0000 1.1
+++ testsuite/gdb.threads/thread_check.exp 23 Nov 2004 23:13:27 -0000
@@ -27,7 +27,7 @@
# in ptrace system call.
#
# Test Strategy:
-# - tbug.c creates 2 threads
+# - thread_check.c creates 2 threads
# - start gdb
# - create 2 breakpoints #1 main() #2 tf() (the thread function)
# - run gdb till #1 main() breakpoint is reached
@@ -74,14 +74,14 @@ gdb_test "break tf" \
# continue to tf() breakpoint #2
#
gdb_test "continue" \
- ".*Breakpoint 2.*tf.* at .*tbug.* .*\r\n.*$gdb_prompt $" \
+ ".*Breakpoint 2,.*tf.*at.*$srcfile:.*" \
"continue to tf"
#
# backtrace from thread function.
#
gdb_test "backtrace" \
- "#0 .*tf .*at .*tbug.*" \
+ "#0 .*tf .*at .*$srcfile:.*" \
"backtrace from thread function"
--
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/
next reply other threads:[~2004-11-23 23:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-23 23:16 Randolph Chung [this message]
2004-11-28 17:41 ` Daniel Jacobowitz
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=20041123231559.GV9148@tausq.org \
--to=randolph@tausq.org \
--cc=gdb-patches@sources.redhat.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