mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-19 05:42:42 +08:00
[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
This commit is contained in:
@ -313,7 +313,7 @@ gdb_test_no_output "set debug compile off"
|
|||||||
gdb_test "show debug compile" "Compile debugging is .*"
|
gdb_test "show debug compile" "Compile debugging is .*"
|
||||||
gdb_test "show compile-args" \
|
gdb_test "show compile-args" \
|
||||||
"Compile command command-line arguments are .*"
|
"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" \
|
gdb_test "set lang rust" \
|
||||||
"Warning: the current language does not match this frame."
|
"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.*" \
|
"You must provide a filename for this command.*" \
|
||||||
"Test compile file without a filename"
|
"Test compile file without a filename"
|
||||||
gdb_test "compile file -r" \
|
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"
|
"Test compile file and raw option without a filename"
|
||||||
gdb_test "compile file -z" \
|
gdb_test "compile file -z" \
|
||||||
"Unknown argument.*" \
|
"Unrecognized option at: -z" \
|
||||||
"Test compile file with unknown argument"
|
"test compile file with unknown option"
|
||||||
|
|
||||||
|
|
||||||
# LOC_CONST tests.
|
# LOC_CONST tests.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user