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