diff options
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/calling-convention.exp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/calling-convention.exp b/gdb/testsuite/gdb.dwarf2/calling-convention.exp index 77107a4..8c87a69 100644 --- a/gdb/testsuite/gdb.dwarf2/calling-convention.exp +++ b/gdb/testsuite/gdb.dwarf2/calling-convention.exp @@ -83,12 +83,14 @@ gdb_test "call foo ()" \ gdb_breakpoint "foo" gdb_continue_to_breakpoint "foo" -gdb_test_multiple "return 35" "" { - -re "Function 'foo' does not follow the target calling convention.\r\nIf you continue, setting the return value will probably lead to unpredictable behaviors.\r\nMake foo return now\\? \\(y or n\\) $" { - pass $gdb_test_name - gdb_test "n" "Not confirmed" "cancel return" - } -} +gdb_test "return 35" \ + "Not confirmed" \ + "return 35" \ + [multi_line \ + "Function 'foo' does not follow the target calling convention\\." \ + "If you continue, setting the return value will probably lead to unpredictable behaviors\\." \ + "Make foo return now\\? \\(y or n\\) $"] \ + "n" gdb_test "finish" [multi_line \ "Run till exit from #0 $hex in foo \\(\\)" \ |