[libcxx] Mark std::async race condition test as unsupported on Darwin
authorLouis Dionne <ldionne@apple.com>
Tue, 9 Oct 2018 14:57:40 +0000 (14:57 +0000)
committerLouis Dionne <ldionne@apple.com>
Tue, 9 Oct 2018 14:57:40 +0000 (14:57 +0000)
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

libcxx/test/std/thread/futures/futures.async/async_race.38682.pass.cpp

index 0a8859e..9374c50 100644 (file)
 // 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.