aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.compile
diff options
context:
space:
mode:
authorWill Schmidt <will_schmidt@vnet.ibm.com>2021-08-05 13:04:35 -0500
committerWill Schmidt <will_schmidt@vnet.ibm.com>2021-08-05 13:04:35 -0500
commitc2bc854c8bfa24c51c902563e6b145c297d577c9 (patch)
tree8332c972418d473e34c8974db1366677d652df14 /gdb/testsuite/gdb.compile
parentbad23de35435e5663740c6710671c418246c8137 (diff)
downloadgdb-c2bc854c8bfa24c51c902563e6b145c297d577c9.zip
gdb-c2bc854c8bfa24c51c902563e6b145c297d577c9.tar.gz
gdb-c2bc854c8bfa24c51c902563e6b145c297d577c9.tar.bz2
[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
Diffstat (limited to 'gdb/testsuite/gdb.compile')
-rw-r--r--gdb/testsuite/gdb.compile/compile-cplus.exp9
1 files changed, 4 insertions, 5 deletions
diff --git a/gdb/testsuite/gdb.compile/compile-cplus.exp b/gdb/testsuite/gdb.compile/compile-cplus.exp
index a2ffb05..886c479 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.