diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:18:58 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:18:58 +0000 |
| commit | 53a420fba21cf1644972b34dcd811a43cdb8368d (patch) | |
| tree | 66a19f6f8b65215772549a51d688492ab8addc0d /test/std/thread/futures/futures.promise/get_future.pass.cpp | |
| parent | b50f1549701eb950921e5d6f2e55ba1a1dadbb43 (diff) | |
Notes
Diffstat (limited to 'test/std/thread/futures/futures.promise/get_future.pass.cpp')
| -rw-r--r-- | test/std/thread/futures/futures.promise/get_future.pass.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/std/thread/futures/futures.promise/get_future.pass.cpp b/test/std/thread/futures/futures.promise/get_future.pass.cpp index bc45e28a9f963..fc606c6c83667 100644 --- a/test/std/thread/futures/futures.promise/get_future.pass.cpp +++ b/test/std/thread/futures/futures.promise/get_future.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() { { @@ -28,6 +29,7 @@ int main() p.set_value(105.5); assert(f.get() == 105.5); } +#ifndef TEST_HAS_NO_EXCEPTIONS { std::promise<double> p; std::future<double> f = p.get_future(); @@ -54,4 +56,5 @@ int main() assert(e.code() == make_error_code(std::future_errc::no_state)); } } +#endif } |
