aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@adacore.com>2013-11-18 15:56:54 +0400
committerJoel Brobecker <brobecker@adacore.com>2013-11-18 15:59:26 +0400
commit176f037c0f8203305c2a1bde4fae1dfbb483af1e (patch)
treedf1a062537f07e6ebf9e1ba71235780c41866b66
parent18cf6de4004b9eaa1a2c0be8dd03523fd60991d1 (diff)
downloadgdb-176f037c0f8203305c2a1bde4fae1dfbb483af1e.zip
gdb-176f037c0f8203305c2a1bde4fae1dfbb483af1e.tar.gz
gdb-176f037c0f8203305c2a1bde4fae1dfbb483af1e.tar.bz2
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".
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.mi/mi-language.exp6
2 files changed, 11 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 3aa68e3..bcaf8bb 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -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.
diff --git a/gdb/testsuite/gdb.mi/mi-language.exp b/gdb/testsuite/gdb.mi/mi-language.exp
index 550beec..0b77b01 100644
--- a/gdb/testsuite/gdb.mi/mi-language.exp
+++ b/gdb/testsuite/gdb.mi/mi-language.exp
@@ -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"