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.cp/exceptprint.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.cp/exceptprint.exp')
-rw-r--r-- | gdb/testsuite/gdb.cp/exceptprint.exp | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/gdb/testsuite/gdb.cp/exceptprint.exp b/gdb/testsuite/gdb.cp/exceptprint.exp index 1248987..ad5f0c4 100644 --- a/gdb/testsuite/gdb.cp/exceptprint.exp +++ b/gdb/testsuite/gdb.cp/exceptprint.exp @@ -76,16 +76,20 @@ if {![runto_main]} { return -1 } -gdb_test "catch catch int if \$_exception == 23" \ - "Catchpoint \[0-9\]+ \\(catch\\)" \ - "catch catch" -gdb_test "catch throw int if \$_exception == 23" \ - "Catchpoint \[0-9\]+ \\(throw\\)" \ - "catch throw" -gdb_test "catch rethrow int if \$_exception == 23" \ - "Catchpoint \[0-9\]+ \\(rethrow\\)" \ - "catch rethrow" +with_test_prefix "2nd run" { + gdb_test "catch catch int if \$_exception == 23" \ + "Catchpoint \[0-9\]+ \\(catch\\)" \ + "catch catch" + gdb_test "catch throw int if \$_exception == 23" \ + "Catchpoint \[0-9\]+ \\(throw\\)" \ + "catch throw" + gdb_test "catch rethrow int if \$_exception == 23" \ + "Catchpoint \[0-9\]+ \\(rethrow\\)" \ + "catch rethrow" +} # This tests both the case where the regular expression does not # match, and the case where it does. -do_exceptprint_tests int 23 +with_test_prefix "2nd run" { + do_exceptprint_tests int 23 +} |