aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alves <pedro@palves.net>2021-06-21 22:20:21 +0100
committerPedro Alves <pedro@palves.net>2021-09-24 17:35:37 +0100
commitd8767a720e889b4b90f2a8a60a43d9fd400f4478 (patch)
tree0fee3cb3abbd1825b4351d3c35cd05ac620d8647
parent6ad036d703099508c388038b57c77a8f7aaffb1d (diff)
downloadbinutils-d8767a720e889b4b90f2a8a60a43d9fd400f4478.zip
binutils-d8767a720e889b4b90f2a8a60a43d9fd400f4478.tar.gz
binutils-d8767a720e889b4b90f2a8a60a43d9fd400f4478.tar.bz2
Fix all DUPLICATE problems in testsuite/gdb.perf/
Currently running "make check-perf" shows: ... # of duplicate test names 6008 ... All those duplicate test names come from gdb.perf/skip-command.exp. This commit fixes them, using with_test_prefix. gdb/testsuite/ yyyy-mm-dd Pedro Alves <pedro@palves.net> * gdb.perf/skip-command.exp (run_skip_bench): Wrap each for iteration in with_test_prefix. Change-Id: I38501cf70bc6b60306ee7228996ee7bcd858dc1b
-rw-r--r--gdb/testsuite/gdb.perf/skip-command.exp9
1 files changed, 6 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.perf/skip-command.exp b/gdb/testsuite/gdb.perf/skip-command.exp
index e396262af..d9f31a7 100644
--- a/gdb/testsuite/gdb.perf/skip-command.exp
+++ b/gdb/testsuite/gdb.perf/skip-command.exp
@@ -101,9 +101,12 @@ proc run_skip_bench { kind text } {
gdb_test_no_output "set variable flag = 1"
for { set i 0 } { $i < 5 } { incr i } {
- set nr_skips [expr $i * $SKIP_DIRECTIVE_COUNT]
- install_skips $kind $text $nr_skips
- gdb_test_python_run "SkipCommand\(\"skip-$kind-$nr_skips\", ${SKIP_STEP_COUNT}\)"
+ with_test_prefix "iter $i" {
+ set nr_skips [expr $i * $SKIP_DIRECTIVE_COUNT]
+ install_skips $kind $text $nr_skips
+ gdb_test_python_run \
+ "SkipCommand\(\"skip-$kind-$nr_skips\", ${SKIP_STEP_COUNT}\)"
+ }
}
gdb_test "set variable flag = 0"