diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2016-02-19 16:53:06 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2016-02-19 16:53:06 -0800 |
| commit | 595d5b2faf30798ef804f010488c5f43bc166af5 (patch) | |
| tree | 565fa6f64223a57a49da76d18a410c606e50e04a /src/test | |
| parent | 28a3e8bb51cdeda4ee73296b827bfb208a0bff5b (diff) | |
| download | rust-595d5b2faf30798ef804f010488c5f43bc166af5.tar.gz rust-595d5b2faf30798ef804f010488c5f43bc166af5.zip | |
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
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass-valgrind/down-with-thread-dtors.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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); |
