mi-language.exp: Check "langauge-option" in -list-features output.

gdb/testsuite/ChangeLog:

        * mi-language.exp: Add "-list-features" test verifying that
        its output contains "language-option".
This commit is contained in:
Joel Brobecker 2013-11-18 15:56:54 +04:00
parent 18cf6de400
commit 176f037c0f
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2013-11-18 Joel Brobecker <brobecker@adacore.com>
* mi-language.exp: Add "-list-features" test verifying that
its output contains "language-option".
2013-11-16 Joel Brobecker <brobecker@adacore.com>
* info_exc/const.ads (Aint_Global_GDB_E): Renames Aint_Global_E.

View File

@ -21,6 +21,12 @@ if [mi_gdb_start] {
continue
}
# First, verify that the debugger correctly advertises support
# for the --language option.
mi_gdb_test "-list-features" \
"\\^done,features=\\\[.*\"language-option\".*\\\]" \
"-list-features should include \"language-option\""
mi_gdb_test "set lang ada" \
".*=cmd-param-changed,param=\"language\",value=\"ada\".*" \
"set lang ada"