gdb/testsuite: Remove duplicates from gdb.mi/mi-language.exp

When running the testsuite, I have:

    Running .../gdb/testsuite/gdb.mi/mi-language.exp ...
    DUPLICATE: gdb.mi/mi-language.exp: set lang ada

This is due to an erroneous explicit test name.  This explicit test name
also happens to be useless (at least it would have been if it was
correct) since it only repeats the command, so just remove the explicit
test name and let the command be used as default test name.  Also remove
explicit test name at another location in the file since it also just
repeat the command.

Tested on x86_64-linux.
This commit is contained in:
Lancelot SIX
2021-11-23 15:15:57 +00:00
parent dd1655dfc3
commit 0b6180fe6e

View File

@ -28,8 +28,7 @@ mi_gdb_test "-list-features" \
"-list-features should include \"language-option\""
mi_gdb_test "set lang ada" \
".*=cmd-param-changed,param=\"language\",value=\"ada\".*" \
"set lang ada"
".*=cmd-param-changed,param=\"language\",value=\"ada\".*"
# Evaluate an expression that the Ada language is unable to parse.
mi_gdb_test "-data-evaluate-expression \"sizeof (void*)\"" \
@ -44,8 +43,7 @@ mi_gdb_test "-data-evaluate-expression --language c \"sizeof (void*)\"" \
# Double-check that the current language has not changed.
mi_gdb_test "show lang ada" \
".*The current source language is \\\\\"ada\\\\\".*" \
"set lang ada"
".*The current source language is \\\\\"ada\\\\\".*"
# Test what happens when specifying an invalid language name...
mi_gdb_test "-data-evaluate-expression --language invlang \"sizeof (void*)\"" \