diff options
author | Luis Machado <luis.machado@linaro.org> | 2020-05-25 13:25:50 -0300 |
---|---|---|
committer | Luis Machado <luis.machado@linaro.org> | 2020-05-27 09:24:09 -0300 |
commit | c2b750436a9db8cf491ddeb316bc71e4b65110b6 (patch) | |
tree | 165e1ef0ce74433f818a2e26aa2b0aafe340c664 /gdb/testsuite/gdb.mi/mi-var-cmd.exp | |
parent | a6dbf402de65fe66f4ec99b56527dfd00d077cb6 (diff) | |
download | gdb-c2b750436a9db8cf491ddeb316bc71e4b65110b6.zip gdb-c2b750436a9db8cf491ddeb316bc71e4b65110b6.tar.gz gdb-c2b750436a9db8cf491ddeb316bc71e4b65110b6.tar.bz2 |
Fix some duplicate test names
While doing a testsuite run on aarch64-linux, I noticed a bunch of duplicated
test name results. It annoyed me a little, so I decided to go ahead and fix the
worst offenders.
The following patch brings the duplicate test names down from 461 to 137.
The remaining ones are mostly scattered across the testsuite, with 1 to 3
duplicates per testcase. We can fix those as we go.
gdb/testsuite/ChangeLog:
2020-05-27 Luis Machado <luis.machado@linaro.org>
* gdb.arch/aarch64-sighandler-regs.exp: Fix duplicated test names.
* gdb.arch/aarch64-tagged-pointer.exp: Likewise.
* gdb.arch/arm-disassembler-options.exp: Likewise.
* gdb.arch/arm-disp-step.exp: Likewise.
* gdb.arch/thumb-prologue.exp: Likewise.
* gdb.base/async.exp: Likewise.
* gdb.base/auxv.exp: Likewise.
* gdb.base/complex-parts.exp: Likewise.
* gdb.base/ena-dis-br.exp: Likewise.
* gdb.base/foll-exec.exp: Likewise.
* gdb.base/permissions.exp: Likewise.
* gdb.base/relocate.exp: Likewise.
* gdb.base/return2.exp: Likewise.
* gdb.base/sigbpt.exp: Likewise.
* gdb.base/siginfo-obj.exp: Likewise.
* gdb.cp/converts.exp: Likewise.
* gdb.cp/exceptprint.exp: Likewise.
* gdb.cp/inherit.exp: Likewise.
* gdb.cp/nsnoimports.exp: Likewise.
* gdb.cp/virtbase2.exp: Likewise.
* gdb.mi/mi-var-cmd.exp: Likewise.
* gdb.mi/var-cmd.c: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.mi/mi-var-cmd.exp')
-rw-r--r-- | gdb/testsuite/gdb.mi/mi-var-cmd.exp | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-var-cmd.exp b/gdb/testsuite/gdb.mi/mi-var-cmd.exp index 9ce6a51..260917a 100644 --- a/gdb/testsuite/gdb.mi/mi-var-cmd.exp +++ b/gdb/testsuite/gdb.mi/mi-var-cmd.exp @@ -70,7 +70,9 @@ mi_gdb_test "113-var-create argc * argc" \ "113\\^error,msg=\"-var-create: unable to create variable object\"" \ "create out of scope variable" -mi_runto do_locals_tests +with_test_prefix "first run" { + mi_runto do_locals_tests +} set line_dlt_first_real [gdb_get_line_number "linteger = 1234;"] @@ -253,7 +255,7 @@ mi_gdb_test "-var-assign global_simple 0" \ mi_gdb_test "-var-assign linteger 3333" \ "\\^done,value=\"3333\"" \ - "assign to linteger" + "assign to linteger, 1st" # Allow lpcharacter to update, optionally. Because it points to a # char variable instead of a zero-terminated string, if linteger is @@ -278,7 +280,7 @@ mi_gdb_test "-var-evaluate-expression linteger" \ mi_gdb_test "-var-assign lpinteger \"&linteger + 3\"" \ "\\^done,value=\"$hex\"" \ - "assign to lpinteger" + "assign to lpinteger, 1st" mi_gdb_test "-var-update *" \ "\\^done,changelist=\\\[\{name=\"lpinteger\",in_scope=\"true\",type_changed=\"false\",has_more=\"0\"\}\\\]" \ @@ -296,11 +298,11 @@ mi_gdb_test "-var-evaluate-expression lpinteger" \ mi_gdb_test "-var-assign linteger 4321" \ "\\^done,value=\"4321\"" \ - "assign to linteger" + "assign to linteger, 2nd" mi_gdb_test "-var-assign lpinteger &linteger" \ "\\^done,value=\"$hex\"" \ - "assign to lpinteger" + "assign to lpinteger, 2nd" mi_gdb_test "-var-assign lcharacter 'z'" \ "\\^done,value=\"122 'z'\"" \ @@ -312,33 +314,33 @@ mi_gdb_test "-var-evaluate-expression lcharacter" \ mi_gdb_test "-var-assign llong 1313L" \ "\\^done,value=\"1313\"" \ - "assign to llong" + "assign to llong, 1st" mi_gdb_test "-var-evaluate-expression llong" \ "\\^done,value=\"1313\"" \ "eval llong" mi_gdb_test "-var-assign llong 1212L" \ "\\^done,value=\"1212\"" \ - "assign to llong" + "assign to llong, 2nd" mi_gdb_test "-var-assign lplong &llong+4" \ "\\^done,value=\"$hex\"" \ - "assign to lplong" + "assign to lplong, 1st" mi_gdb_test "-var-evaluate-expression lplong" \ "\\^done,value=\"$hex\"" \ "eval lplong" mi_gdb_test "-var-assign lplong &llong" \ "\\^done,value=\"$hex\"" \ - "assign to lplong" + "assign to lplong, 2nd" mi_gdb_test "-var-assign lfloat 3.4567" \ "\\^done,value=\"3.45.*\"" \ - "assign to lfloat" + "assign to lfloat, 1st" mi_gdb_test "-var-evaluate-expression lfloat" \ "\\^done,value=\"3.45.*\"" \ "eval lfloat" mi_gdb_test "-var-assign lfloat 1.2345" \ "\\^done,value=\"1.23.*\"" \ - "assign to lfloat" + "assign to lfloat, 2nd" mi_gdb_test "-var-assign lpfloat &lfloat+4" \ "\\^done,value=\"$hex\"" \ @@ -648,7 +650,9 @@ mi_gdb_test "-var-delete endvar" \ mi_delete_breakpoints -mi_runto do_locals_tests +with_test_prefix "second run" { + mi_runto do_locals_tests +} mi_create_varobj "L" "lsimple" "in-and-out-of-scope: create varobj" mi_check_varobj_value "L" "{...}" "in-and-out-of-scope: check initial value" |