From 7c90d7a00fd4d997ba713f2b09911dedaf2d24d2 Mon Sep 17 00:00:00 2001 From: Vladimir Ivanov Date: Thu, 24 Sep 2020 00:29:28 +0300 Subject: [PATCH] Test: downgrade from C++14 to 11 --- backend.native/tests/interop/concurrentTerminate/main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend.native/tests/interop/concurrentTerminate/main.cpp b/backend.native/tests/interop/concurrentTerminate/main.cpp index 216a0c221fa..451a73c1408 100644 --- a/backend.native/tests/interop/concurrentTerminate/main.cpp +++ b/backend.native/tests/interop/concurrentTerminate/main.cpp @@ -7,7 +7,6 @@ #include #include // signal.h -using namespace std::chrono_literals; // since C++14 using namespace std; static @@ -18,10 +17,10 @@ int runConcurrent() { for (size_t i = 0; i < 100; ++i) { futures.emplace_back(std::async(std::launch::async, [](auto delay) { - std::this_thread::sleep_for(delay); + std::this_thread::sleep_for(std::chrono::milliseconds(delay)); testlib_symbols()->kotlin.root.testTerminate(); }, - 100ms)); + 100)); } for (auto &future : futures) future.get();