From: Will Schmidt Date: Thu, 5 Aug 2021 18:04:35 +0000 (-0500) Subject: [PATCH] GDB Testsuite, update compile-cplus.exp X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c2bc854c8bfa24c51c902563e6b145c297d577c9;p=binutils-gdb.git [PATCH] GDB Testsuite, update compile-cplus.exp [PATCH] GDB Testsuite, update compile-cplus.exp Update the gdb.compile/compile-cplus.exp test to handle errors generated when passing bad arguments into the gdb-compile command. This matches changes made to gdb.compile/compile.exp in the past as part of "Migrate rest of compile commands to new options framework" e6ed716cd5514c08b9d7c469d185b1aa177dbc22 --- diff --git a/gdb/testsuite/gdb.compile/compile-cplus.exp b/gdb/testsuite/gdb.compile/compile-cplus.exp index a2ffb05edff..886c4797a3a 100644 --- a/gdb/testsuite/gdb.compile/compile-cplus.exp +++ b/gdb/testsuite/gdb.compile/compile-cplus.exp @@ -313,7 +313,7 @@ gdb_test_no_output "set debug compile off" gdb_test "show debug compile" "Compile debugging is .*" gdb_test "show compile-args" \ "Compile command command-line arguments are .*" -gdb_test "compile code -z" "Unknown argument.*" +gdb_test "compile code -z" "Unrecognized option at: -z" gdb_test "set lang rust" \ "Warning: the current language does not match this frame." @@ -328,12 +328,11 @@ gdb_test "compile file" \ "You must provide a filename for this command.*" \ "Test compile file without a filename" gdb_test "compile file -r" \ - "You must provide a filename with the raw option set.*" \ + "You must provide a filename for this command.*" \ "Test compile file and raw option without a filename" gdb_test "compile file -z" \ - "Unknown argument.*" \ - "Test compile file with unknown argument" - + "Unrecognized option at: -z" \ + "test compile file with unknown option" # LOC_CONST tests.