Fix for mi-reverse.exp
authorCarl Love <cel@us.ibm.com>
Tue, 20 Jul 2021 22:42:48 +0000 (17:42 -0500)
committerCarl Love <cel@us.ibm.com>
Mon, 26 Jul 2021 15:47:56 +0000 (10:47 -0500)
This test fails on PPC64 because PPC64 prints the value of 3.5 with
more significant digits than on Intel. The patch updates the regular
expression to allow for more significant digits on the constant.

gdb/testsuite/ChangeLog

* gdb.mi/mi-reverse.exp: mi_execute_to exec-step reverse add check
for additional digits.

gdb/testsuite/gdb.mi/mi-reverse.exp

index 0bd126912dc17645c332b5e808d4b31d9f26745b..311a3a433b1eff5981f98c9516894fb9a6705b39 100644 (file)
@@ -111,7 +111,7 @@ proc test_controlled_execution_reverse {} {
 
     mi_execute_to "exec-step --reverse" \
        "end-stepping-range" "callee1" \
-       "\{name=\"intarg\",value=\"2\"\},\{name=\"strarg\",value=\"$hex \\\\\"A string argument\.\\\\\"\"\},\{name=\"fltarg\",value=\"3.5\"\}" \
+       "\{name=\"intarg\",value=\"2\"\},\{name=\"strarg\",value=\"$hex \\\\\"A string argument\.\\\\\"\"\},\{name=\"fltarg\",value=\"3.5\[0-9\]*\"\}" \
        "basics.c" $line_callee1_close "" \
        "reverse step to callee1"