onqtam | c9b4e1f | 2018-08-17 14:20:59 +0300 | [diff] [blame] | 1 | #include "doctest.h" |
2 | |||||
3 | DOCTEST_MAKE_STD_HEADERS_CLEAN_FROM_WARNINGS_ON_WALL_BEGIN | ||||
4 | #include <thread> | ||||
5 | DOCTEST_MAKE_STD_HEADERS_CLEAN_FROM_WARNINGS_ON_WALL_END | ||||
6 | |||||
7 | static void call_from_thread() { | ||||
8 | INFO("trololo"); | ||||
9 | CHECK(1 == 1); | ||||
10 | CHECK(1 == 2); | ||||
11 | } | ||||
12 | |||||
13 | TEST_CASE("threads...") { | ||||
14 | std::thread t1(call_from_thread); | ||||
15 | std::thread t2(call_from_thread); | ||||
16 | |||||
17 | t1.join(); | ||||
18 | t2.join(); | ||||
19 | } |