Skip to content

Commit

Permalink
test: Fix a spuriously failing test on valgrind
Browse files Browse the repository at this point in the history
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
  • Loading branch information
alexcrichton committed Feb 20, 2016
1 parent 28a3e8b commit 595d5b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/run-pass-valgrind/down-with-thread-dtors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 595d5b2

Please sign in to comment.