aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.threads
diff options
context:
space:
mode:
authorLancelot SIX <lsix@lancelotsix.com>2021-11-23 16:40:24 +0000
committerLancelot SIX <lsix@lancelotsix.com>2022-01-07 22:43:34 +0000
commit4df98d9d31173d45438fbf000e6ed2d3cdd98ae2 (patch)
tree96a0ea2d74b68d965003bb0c6b58ec20f1ffdc36 /gdb/testsuite/gdb.threads
parent0b6180fe6e3080ceb92eb96b76dd36fede18d1b2 (diff)
downloadgdb-4df98d9d31173d45438fbf000e6ed2d3cdd98ae2.zip
gdb-4df98d9d31173d45438fbf000e6ed2d3cdd98ae2.tar.gz
gdb-4df98d9d31173d45438fbf000e6ed2d3cdd98ae2.tar.bz2
gdb/testsuite: Remove duplicates from gdb.threads/staticthreads.ex
When running the testsuite, I have: Running .../gdb/testsuite/gdb.threads/staticthreads.exp ... DUPLICATE: gdb.threads/staticthreads.exp: couldn't compile staticthreads.c: unrecognized error Fix by using foreach_with_prefix instead of foreach when preparing the test case. Testeed on x86_64-linux both in a setup where the test fails to prepare and in a setup where the test fails to setup.
Diffstat (limited to 'gdb/testsuite/gdb.threads')
-rw-r--r--gdb/testsuite/gdb.threads/staticthreads.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.threads/staticthreads.exp b/gdb/testsuite/gdb.threads/staticthreads.exp
index cc4867d..788fb53 100644
--- a/gdb/testsuite/gdb.threads/staticthreads.exp
+++ b/gdb/testsuite/gdb.threads/staticthreads.exp
@@ -22,7 +22,7 @@
standard_testfile
set static_flag "-static"
-foreach have_tls { "-DHAVE_TLS" "" } {
+foreach_with_prefix have_tls { "-DHAVE_TLS" "" } {
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
executable \
[list debug "additional_flags=${static_flag} ${have_tls}" \