diff options
author | Lancelot SIX <lsix@lancelotsix.com> | 2021-11-23 15:15:57 +0000 |
---|---|---|
committer | Lancelot SIX <lsix@lancelotsix.com> | 2022-01-07 22:43:34 +0000 |
commit | 0b6180fe6e3080ceb92eb96b76dd36fede18d1b2 (patch) | |
tree | e34bf3026c7edc44aeb2061d26e445a49e053d28 | |
parent | dd1655dfc3468a8ce43b684e817acedec53f0980 (diff) | |
download | binutils-0b6180fe6e3080ceb92eb96b76dd36fede18d1b2.zip binutils-0b6180fe6e3080ceb92eb96b76dd36fede18d1b2.tar.gz binutils-0b6180fe6e3080ceb92eb96b76dd36fede18d1b2.tar.bz2 |
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.
-rw-r--r-- | gdb/testsuite/gdb.mi/mi-language.exp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-language.exp b/gdb/testsuite/gdb.mi/mi-language.exp index fe3f1ad..2fe4796 100644 --- a/gdb/testsuite/gdb.mi/mi-language.exp +++ b/gdb/testsuite/gdb.mi/mi-language.exp @@ -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*)\"" \ |