aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorRandolph Chung <tausq@debian.org>2004-12-01 06:56:21 +0000
committerRandolph Chung <tausq@debian.org>2004-12-01 06:56:21 +0000
commit8de0841b1c5d7c498deec6c42dcfa539dc58c1fa (patch)
tree9a09d0994a08b0b0d253e1719ad8b50e03606044 /gdb/testsuite
parent46905982ed56fe8c844d6c645a77cc6767b5715c (diff)
downloadgdb-8de0841b1c5d7c498deec6c42dcfa539dc58c1fa.zip
gdb-8de0841b1c5d7c498deec6c42dcfa539dc58c1fa.tar.gz
gdb-8de0841b1c5d7c498deec6c42dcfa539dc58c1fa.tar.bz2
2004-11-30 Randolph Chung <tausq@debian.org>
* gdb.threads/thread_check.exp: Use ${srcfile} for test program name instead of "tbug". Fix regexp to work properly with gdb_test.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.threads/thread_check.exp6
2 files changed, 8 insertions, 3 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 67c9bf3..1a87a09 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2004-11-30 Randolph Chung <tausq@debian.org>
+
+ * gdb.threads/thread_check.exp: Use ${srcfile} for test program name
+ instead of "tbug". Fix regexp to work properly with gdb_test.
+
2004-11-29 Paul Hilfinger <Hilfinger@gnat.com>
* gdb.base/bitfields2.exp: New test.
diff --git a/gdb/testsuite/gdb.threads/thread_check.exp b/gdb/testsuite/gdb.threads/thread_check.exp
index 95b89d0..7f6a3d8 100644
--- a/gdb/testsuite/gdb.threads/thread_check.exp
+++ b/gdb/testsuite/gdb.threads/thread_check.exp
@@ -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"