diff options
Diffstat (limited to 'test/std/thread/futures/futures.promise/set_lvalue.pass.cpp')
-rw-r--r-- | test/std/thread/futures/futures.promise/set_lvalue.pass.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/std/thread/futures/futures.promise/set_lvalue.pass.cpp b/test/std/thread/futures/futures.promise/set_lvalue.pass.cpp index 98394871e703..6e2a4a5d9109 100644 --- a/test/std/thread/futures/futures.promise/set_lvalue.pass.cpp +++ b/test/std/thread/futures/futures.promise/set_lvalue.pass.cpp @@ -7,7 +7,6 @@ // //===----------------------------------------------------------------------===// // -// XFAIL: libcpp-no-exceptions // UNSUPPORTED: libcpp-has-no-threads // UNSUPPORTED: c++98, c++03 @@ -20,6 +19,8 @@ #include <future> #include <cassert> +#include "test_macros.h" + int main() { { @@ -32,6 +33,7 @@ int main() assert(j == 3); ++i; assert(j == 4); +#ifndef TEST_HAS_NO_EXCEPTIONS try { p.set_value(i); @@ -41,5 +43,6 @@ int main() { assert(e.code() == make_error_code(std::future_errc::promise_already_satisfied)); } +#endif } } |