From 53ca3c93dba54ce83bc5df5400aaa07cdbaeff1c Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Sat, 30 Apr 2016 02:30:18 +0000 Subject: [PATCH] Replace one more occurrence of non-standard std:launch::any. Patch from STL@microsoft.com llvm-svn: 268153 --- libcxx/test/std/thread/futures/futures.async/async.pass.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libcxx/test/std/thread/futures/futures.async/async.pass.cpp b/libcxx/test/std/thread/futures/futures.async/async.pass.cpp index 20c16e7..5cb824d 100644 --- a/libcxx/test/std/thread/futures/futures.async/async.pass.cpp +++ b/libcxx/test/std/thread/futures/futures.async/async.pass.cpp @@ -132,7 +132,7 @@ int main() test(checkVoid, DPID, f2); test(checkVoid, false, std::launch::async, f2); test(checkVoid, true, std::launch::deferred, f2); - test(checkVoid, DPID, std::launch::any, f2); + test(checkVoid, DPID, AnyPolicy, f2); } { using Ret = std::unique_ptr; @@ -143,11 +143,11 @@ int main() { std::future f = std::async(f5, 3); std::this_thread::sleep_for(ms(300)); - try { f.get(); assert (false); } catch ( int ex ) {} + try { f.get(); assert (false); } catch ( int ) {} } { std::future f = std::async(std::launch::deferred, f5, 3); std::this_thread::sleep_for(ms(300)); - try { f.get(); assert (false); } catch ( int ex ) {} + try { f.get(); assert (false); } catch ( int ) {} } } -- 2.7.4