diff options
author | Tom de Vries <tdevries@suse.de> | 2024-06-20 15:37:48 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2024-06-20 15:37:48 +0200 |
commit | 18e62b794632622c44684909edd447cf914eac44 (patch) | |
tree | 57b1a30b8ec7900c2bf269bf957e42418d03cb24 /gdb | |
parent | ff05ed68edc34235d06c48cb2178a97642424593 (diff) | |
download | binutils-18e62b794632622c44684909edd447cf914eac44.zip binutils-18e62b794632622c44684909edd447cf914eac44.tar.gz binutils-18e62b794632622c44684909edd447cf914eac44.tar.bz2 |
[gdb/testsuite] Fix duplicates in gdb.base/watchpoint-unaligned.exp
When running test-case gdb.base/watchpoint-unaligned.exp on ppc64le-linux, we
get:
...
XFAIL: $exp: rwatch data.u.size1[3] (PRMS breakpoints/23131)
XFAIL: $exp: rwatch data.u.size1[4] (PRMS breakpoints/23131)
...
UNTESTED: $exp: wpcount(4)
XFAIL: $exp: rwatch data.u.size1[3] (PRMS breakpoints/23131)
DUPLICATE: $exp: rwatch data.u.size1[3] (PRMS breakpoints/23131)
XFAIL: $exp: rwatch data.u.size1[4] (PRMS breakpoints/23131)
DUPLICATE: $exp: rwatch data.u.size1[4] (PRMS breakpoints/23131)
...
UNTESTED: $exp: wpcount(7)
...
Fix this by using foreach_with_prefix.
Tested on ppc64le-linux.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/gdb.base/watchpoint-unaligned.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/watchpoint-unaligned.exp b/gdb/testsuite/gdb.base/watchpoint-unaligned.exp index 35e8868..999dd3a 100644 --- a/gdb/testsuite/gdb.base/watchpoint-unaligned.exp +++ b/gdb/testsuite/gdb.base/watchpoint-unaligned.exp @@ -98,7 +98,7 @@ foreach wpsize $sizes { } } -foreach wpcount {4 7} { +foreach_with_prefix wpcount {4 7} { array set wpoffset_to_wpnum {} for {set wpoffset 1} {$wpoffset <= $wpcount} {incr wpoffset} { set test "$rwatch data.u.size1\[$wpoffset\]" |