From 733153a0fb52facba02c550ec849f0c734dfa412 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Mon, 8 May 2017 17:13:34 +0000 Subject: Vendor import of libc++ trunk r302418: https://llvm.org/svn/llvm-project/libcxx/trunk@302418 --- test/std/thread/futures/futures.future_error/what.pass.cpp | 8 +++++--- .../thread.lock/thread.lock.guard/mutex.pass.cpp | 2 +- .../thread.lock/thread.lock.scoped/mutex.pass.cpp | 2 +- .../thread.lock/thread.lock.shared/lit.local.cfg | 2 ++ .../thread.shared_mutex.requirements/lit.local.cfg | 2 ++ .../thread.sharedtimedmutex.requirements/lit.local.cfg | 2 ++ .../thread.threads/thread.thread.this/sleep_for.pass.cpp | 13 +++++++++++++ 7 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 test/std/thread/thread.mutex/thread.lock/thread.lock.shared/lit.local.cfg create mode 100644 test/std/thread/thread.mutex/thread.mutex.requirements/thread.shared_mutex.requirements/lit.local.cfg create mode 100644 test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/lit.local.cfg (limited to 'test/std/thread') diff --git a/test/std/thread/futures/futures.future_error/what.pass.cpp b/test/std/thread/futures/futures.future_error/what.pass.cpp index cc2d978d2c2b4..957d530ab2ac8 100644 --- a/test/std/thread/futures/futures.future_error/what.pass.cpp +++ b/test/std/thread/futures/futures.future_error/what.pass.cpp @@ -12,9 +12,11 @@ // LWG 2056 changed the values of future_errc, so if we're using new headers // with an old library we'll get incorrect messages. // -// XFAIL: with_system_cxx_lib=x86_64-apple-macosx10.7 -// XFAIL: with_system_cxx_lib=x86_64-apple-macosx10.8 -// XFAIL: with_system_cxx_lib=x86_64-apple-darwin13 +// XFAIL: with_system_cxx_lib=macosx10.11 +// XFAIL: with_system_cxx_lib=macosx10.10 +// XFAIL: with_system_cxx_lib=macosx10.9 +// XFAIL: with_system_cxx_lib=macosx10.7 +// XFAIL: with_system_cxx_lib=macosx10.8 // diff --git a/test/std/thread/thread.mutex/thread.lock/thread.lock.guard/mutex.pass.cpp b/test/std/thread/thread.mutex/thread.lock/thread.lock.guard/mutex.pass.cpp index fffd087ee8776..97f9d07c15127 100644 --- a/test/std/thread/thread.mutex/thread.lock/thread.lock.guard/mutex.pass.cpp +++ b/test/std/thread/thread.mutex/thread.lock/thread.lock.guard/mutex.pass.cpp @@ -52,7 +52,7 @@ int main() std::this_thread::sleep_for(ms(250)); m.unlock(); t.join(); - + #ifdef __cpp_deduction_guides std::lock_guard lg(m); static_assert((std::is_same>::value), "" ); diff --git a/test/std/thread/thread.mutex/thread.lock/thread.lock.scoped/mutex.pass.cpp b/test/std/thread/thread.mutex/thread.lock/thread.lock.scoped/mutex.pass.cpp index ef39bbcc5e888..cdf3ceeb615c1 100644 --- a/test/std/thread/thread.mutex/thread.lock/thread.lock.scoped/mutex.pass.cpp +++ b/test/std/thread/thread.mutex/thread.lock/thread.lock.scoped/mutex.pass.cpp @@ -150,6 +150,6 @@ int main() std::scoped_lock sl{m1, m2, m3}; static_assert((std::is_same>::value), "" ); } - } + } #endif } diff --git a/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/lit.local.cfg b/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/lit.local.cfg new file mode 100644 index 0000000000000..fd3dc778c8ce3 --- /dev/null +++ b/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/lit.local.cfg @@ -0,0 +1,2 @@ +if 'availability' in config.available_features: + config.unsupported = True diff --git a/test/std/thread/thread.mutex/thread.mutex.requirements/thread.shared_mutex.requirements/lit.local.cfg b/test/std/thread/thread.mutex/thread.mutex.requirements/thread.shared_mutex.requirements/lit.local.cfg new file mode 100644 index 0000000000000..fd3dc778c8ce3 --- /dev/null +++ b/test/std/thread/thread.mutex/thread.mutex.requirements/thread.shared_mutex.requirements/lit.local.cfg @@ -0,0 +1,2 @@ +if 'availability' in config.available_features: + config.unsupported = True diff --git a/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/lit.local.cfg b/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/lit.local.cfg new file mode 100644 index 0000000000000..fd3dc778c8ce3 --- /dev/null +++ b/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/lit.local.cfg @@ -0,0 +1,2 @@ +if 'availability' in config.available_features: + config.unsupported = True diff --git a/test/std/thread/thread.threads/thread.thread.this/sleep_for.pass.cpp b/test/std/thread/thread.threads/thread.thread.this/sleep_for.pass.cpp index 27e1d2a1d42fa..891b084dd32e4 100644 --- a/test/std/thread/thread.threads/thread.thread.this/sleep_for.pass.cpp +++ b/test/std/thread/thread.threads/thread.thread.this/sleep_for.pass.cpp @@ -9,6 +9,18 @@ // // UNSUPPORTED: libcpp-has-no-threads +// This test uses the POSIX header which Windows doesn't provide +// UNSUPPORTED: windows + +// This test depends on signal behaviour until r210210, so some system libs +// don't pass. +// +// XFAIL: with_system_cxx_lib=macosx10.11 +// XFAIL: with_system_cxx_lib=macosx10.10 +// XFAIL: with_system_cxx_lib=macosx10.9 +// XFAIL: with_system_cxx_lib=macosx10.8 +// XFAIL: with_system_cxx_lib=macosx10.7 + // // template @@ -23,6 +35,7 @@ void sig_action(int) {} +#include int main() { int ec; -- cgit v1.3