[gdb/testsuite] Fix incomplete regexps in step-precsave.exp
authorTom de Vries <tdevries@suse.de>
Fri, 27 Sep 2019 15:04:59 +0000 (17:04 +0200)
committerTom de Vries <tdevries@suse.de>
Fri, 27 Sep 2019 15:04:59 +0000 (17:04 +0200)
The commit 68f7d34dd50 "[gdb/testsuite] Add KFAIL for missing support of
reverse-debugging of vmovd" rewrites a gdb_test into a gdb_test_multiple but
forgets to add the $gdb_prompt part in the regexp.

Add the missing parts of the regexps.

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

2019-09-27  Tom de Vries  <tdevries@suse.de>

* gdb.reverse/step-precsave.exp: Add missing $gdb_prompt in regexps.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.reverse/step-precsave.exp

index 625a70cf43594009c016077b2d6b21599c221d46..87f34d62987b92d02d813deb2b830dc7005ec93c 100644 (file)
@@ -1,3 +1,7 @@
+2019-09-27  Tom de Vries  <tdevries@suse.de>
+
+       * gdb.reverse/step-precsave.exp: Add missing $gdb_prompt in regexps.
+
 2019-09-27  Tom de Vries  <tdevries@suse.de>
 
        PR record/23188
index f5e15510e1f5a133cb464a91172a15ff45bdd5a2..2073b8a1542685701630b6c89beb8cb76e287080 100644 (file)
@@ -47,11 +47,13 @@ gdb_test "break $end_of_main" \
 # This can take awhile.
 with_timeout_factor 20 {
     set test "run to end of main"
+    set pass_pattern "Breakpoint .* end of main .*"
+    set kfail_pattern "Process record does not support instruction 0xc5 at.*"
     gdb_test_multiple "continue" $test {
-       -re "Breakpoint .* end of main .*" {
+       -re "\[\r\n\]*(?:$pass_pattern)\[\r\n\]+$gdb_prompt $" {
            pass $test
        }
-       -re "Process record does not support instruction 0xc5 at.*$gdb_prompt $" {
+       -re "\[\r\n\]*(?:$kfail_pattern)\[\r\n\]+$gdb_prompt $" {
            kfail "record/23188" $test
        }
     }
This page took 0.030646 seconds and 4 git commands to generate.