From 595d5b2faf30798ef804f010488c5f43bc166af5 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 19 Feb 2016 16:53:06 -0800 Subject: [PATCH] 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 --- src/test/run-pass-valgrind/down-with-thread-dtors.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/run-pass-valgrind/down-with-thread-dtors.rs b/src/test/run-pass-valgrind/down-with-thread-dtors.rs index 5c449d511d5..0bf10c67d9f 100644 --- a/src/test/run-pass-valgrind/down-with-thread-dtors.rs +++ b/src/test/run-pass-valgrind/down-with-thread-dtors.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// no-prefer-dynamic + thread_local!(static FOO: Foo = Foo); thread_local!(static BAR: Bar = Bar(1)); thread_local!(static BAZ: Baz = Baz);