mi-language.exp: Check "langauge-option" in -list-features output.
authorJoel Brobecker <brobecker@adacore.com>
Mon, 18 Nov 2013 11:56:54 +0000 (15:56 +0400)
committerJoel Brobecker <brobecker@adacore.com>
Mon, 18 Nov 2013 11:59:26 +0000 (15:59 +0400)
gdb/testsuite/ChangeLog:

        * mi-language.exp: Add "-list-features" test verifying that
        its output contains "language-option".

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.mi/mi-language.exp

index 3aa68e3847f37e08863b889adb6eaf31084e96ec..bcaf8bb5b0f61d34a027c3924e76f1257defbbb9 100644 (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.
index 550beec5e466cfae620d55e584c622b8754c4f0f..0b77b01f1562938a1825e40864ebf676b27f4119 100644 (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"