Author: stl_msft
Date: Tue Nov 15 11:00:32 2016
New Revision: 286983

URL: http://llvm.org/viewvc/llvm-project?rev=286983&view=rev
Log:
[libcxx] [test] D26625: future_error::what() is implementation-defined.

Modified:
    libcxx/trunk/test/std/thread/futures/futures.future_error/what.pass.cpp

Modified: 
libcxx/trunk/test/std/thread/futures/futures.future_error/what.pass.cpp
URL: 
http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/thread/futures/futures.future_error/what.pass.cpp?rev=286983&r1=286982&r2=286983&view=diff
==============================================================================
--- libcxx/trunk/test/std/thread/futures/futures.future_error/what.pass.cpp 
(original)
+++ libcxx/trunk/test/std/thread/futures/futures.future_error/what.pass.cpp Tue 
Nov 15 11:00:32 2016
@@ -26,25 +26,27 @@
 #include <cstring>
 #include <cassert>
 
+#include "test_macros.h"
+
 int main()
 {
     {
         std::future_error 
f(std::make_error_code(std::future_errc::broken_promise));
-        assert(std::strcmp(f.what(), "The associated promise has been 
destructed prior "
+        LIBCPP_ASSERT(std::strcmp(f.what(), "The associated promise has been 
destructed prior "
                       "to the associated state becoming ready.") == 0);
     }
     {
         std::future_error 
f(std::make_error_code(std::future_errc::future_already_retrieved));
-        assert(std::strcmp(f.what(), "The future has already been retrieved 
from "
+        LIBCPP_ASSERT(std::strcmp(f.what(), "The future has already been 
retrieved from "
                       "the promise or packaged_task.") == 0);
     }
     {
         std::future_error 
f(std::make_error_code(std::future_errc::promise_already_satisfied));
-        assert(std::strcmp(f.what(), "The state of the promise has already 
been set.") == 0);
+        LIBCPP_ASSERT(std::strcmp(f.what(), "The state of the promise has 
already been set.") == 0);
     }
     {
         std::future_error f(std::make_error_code(std::future_errc::no_state));
-        assert(std::strcmp(f.what(), "Operation not permitted on an object 
without "
+        LIBCPP_ASSERT(std::strcmp(f.what(), "Operation not permitted on an 
object without "
                       "an associated state.") == 0);
     }
 }


_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to