2004-11-30 Randolph Chung <tausq@debian.org>
authorRandolph Chung <tausq@debian.org>
Wed, 1 Dec 2004 06:56:21 +0000 (06:56 +0000)
committerRandolph Chung <tausq@debian.org>
Wed, 1 Dec 2004 06:56:21 +0000 (06:56 +0000)
* gdb.threads/thread_check.exp: Use ${srcfile} for test program name
instead of "tbug".  Fix regexp to work properly with gdb_test.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.threads/thread_check.exp

index 67c9bf3ed6e12a2393c6dbe3cc4f2a54cbc48622..1a87a090b41ee0c4425b1f960f0c1fc6d9118650 100644 (file)
@@ -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.
index 95b89d03968a8aa66ff0cb27946014de5c30ea17..7f6a3d8bc0a1e007ab175da66161b705dae6e07a 100644 (file)
@@ -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"
 
 
This page took 0.032431 seconds and 4 git commands to generate.