gdb/testsuite: Remove duplicates from gdb.threads/staticthreads.ex
authorLancelot SIX <lsix@lancelotsix.com>
Tue, 23 Nov 2021 16:40:24 +0000 (16:40 +0000)
committerLancelot SIX <lsix@lancelotsix.com>
Fri, 7 Jan 2022 22:43:34 +0000 (22:43 +0000)
commit4df98d9d31173d45438fbf000e6ed2d3cdd98ae2
tree96a0ea2d74b68d965003bb0c6b58ec20f1ffdc36
parent0b6180fe6e3080ceb92eb96b76dd36fede18d1b2
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.
gdb/testsuite/gdb.threads/staticthreads.exp