]> Git Repo - binutils.git/commitdiff
* gdb.base/longjmp.exp: Fix GDB_TEST_MULTIPLE missing GDB_PROMPT races.
authorJan Kratochvil <[email protected]>
Thu, 22 May 2008 14:33:12 +0000 (14:33 +0000)
committerJan Kratochvil <[email protected]>
Thu, 22 May 2008 14:33:12 +0000 (14:33 +0000)
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/longjmp.exp

index 260feea46d5a26e0fa88b1b9c37d82f576eb48d8..e23dee9de3c61090fd82dd9bc9ea8fd3c43a6830 100644 (file)
@@ -1,3 +1,7 @@
+2008-05-22  Jan Kratochvil  <[email protected]>
+
+       * gdb.base/longjmp.exp: Fix GDB_TEST_MULTIPLE missing GDB_PROMPT races.
+
 2008-05-21  Joel Brobecker  <[email protected]>
 
        * gdb.base/finish.exp: Test that "fin" works as an abbreviation
index da8f4849076873997f45b3839721ffdc33f4b35d..90ac8290061c6d7b9408320da02e2581e085b915 100644 (file)
@@ -75,12 +75,12 @@ gdb_test "next" "longjmp \\(env, 1\\);.*" "next to longjmp (1)"
 
 set msg "next over longjmp(1)"
 gdb_test_multiple "next" $msg {
-    -re ".*patt1.*" {
+    -re ".*patt1.*$gdb_prompt $" {
        pass $msg
        gdb_test "next" "resumes\\+\\+.*" "next into else block (1)"
        gdb_test "next" "miss_step_1.*" "next into safety net (1)"
     }
-    -re "miss_step_1.*" {
+    -re "miss_step_1.*$gdb_prompt $" {
        fail $msg
     }
 }
@@ -105,13 +105,13 @@ gdb_test "next" "call_longjmp.*" "next over setjmp (2)"
 
 set msg "next over call_longjmp (2)"
 gdb_test_multiple "next" $msg {
-    -re ".*patt2.*" {
+    -re ".*patt2.*$gdb_prompt $" {
        pass $msg
 
        gdb_test "next" "resumes\\+\\+.*" "next into else block (2)"
        gdb_test "next" "miss_step_2.*" "next into safety net (2)"
     }
-    -re "miss_step_2.*" {
+    -re "miss_step_2.*$gdb_prompt $" {
        fail $msg
     }
 }
This page took 0.066431 seconds and 4 git commands to generate.