summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/thread/futures/futures.async/async_race.38682.pass.cpp
diff options
context:
space:
mode:
authorLouis Dionne <ldionne@apple.com>2018-10-09 14:57:40 +0000
committerLouis Dionne <ldionne@apple.com>2018-10-09 14:57:40 +0000
commit4ad751e5c310e414b8dc7124d70673e26327abb0 (patch)
treeae307d51ffc18d622b8e628230c07f4aa7c07536 /libcxx/test/std/thread/futures/futures.async/async_race.38682.pass.cpp
parentdd1bed11d87e95cd05172fd6c1c3e7855f2ced6f (diff)
downloadbcm5719-llvm-4ad751e5c310e414b8dc7124d70673e26327abb0.tar.gz
bcm5719-llvm-4ad751e5c310e414b8dc7124d70673e26327abb0.zip
[libcxx] Mark std::async race condition test as unsupported on Darwin
PR38682 added a test to check for a race condition in std::future. Part of the fix is part of the dylib, but there is no released version of mac OS X that ships a dylib containing the fix. Hence, this test can (and sometimes does) when testing on OS X. This commit marks the test as unsupported to avoid spurious failures. llvm-svn: 344053
Diffstat (limited to 'libcxx/test/std/thread/futures/futures.async/async_race.38682.pass.cpp')
-rw-r--r--libcxx/test/std/thread/futures/futures.async/async_race.38682.pass.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libcxx/test/std/thread/futures/futures.async/async_race.38682.pass.cpp b/libcxx/test/std/thread/futures/futures.async/async_race.38682.pass.cpp
index 0a8859ed604..9374c5079c0 100644
--- a/libcxx/test/std/thread/futures/futures.async/async_race.38682.pass.cpp
+++ b/libcxx/test/std/thread/futures/futures.async/async_race.38682.pass.cpp
@@ -10,6 +10,10 @@
// UNSUPPORTED: libcpp-has-no-threads
// UNSUPPORTED: c++98, c++03
+// There's currently no release of OS X whose dylib contains the patch for
+// PR38682. Since the fix for future<void> is in the dylib, this test may fail.
+// UNSUPPORTED: apple-darwin
+
// This test is designed to cause and allow TSAN to detect a race condition
// in std::async, as reported in https://bugs.llvm.org/show_bug.cgi?id=38682.
OpenPOWER on IntegriCloud