Skip to content

Commit 595d5b2

Browse files
committed
test: Fix a spuriously failing test on valgrind
It's unclear to me whether this test failing under valgrind is actually legit. The test only fails in valgrind when everything is dynamically linked, and it appears to work when statically linked. For now just add the `// no-prefer-dynamic` directive and let's just chalk it up to a weird valgrind issue. Closes #31328
1 parent 28a3e8b commit 595d5b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/run-pass-valgrind/down-with-thread-dtors.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// no-prefer-dynamic
12+
1113
thread_local!(static FOO: Foo = Foo);
1214
thread_local!(static BAR: Bar = Bar(1));
1315
thread_local!(static BAZ: Baz = Baz);

0 commit comments

Comments
 (0)