mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 02:22:30 +00:00
fix(test): wait for test thread to exit with 100ms timeout
This commit is contained in:
parent
93e4cfc300
commit
25b12dee7b
1 changed files with 1 additions and 0 deletions
|
|
@ -53,5 +53,6 @@ TEST_CASE("SThread::Create", "[thread]") {
|
||||||
auto threadName = const_cast<char*>("TestThread");
|
auto threadName = const_cast<char*>("TestThread");
|
||||||
auto threadParam = SMemAlloc(16, nullptr, 0, 0x0);
|
auto threadParam = SMemAlloc(16, nullptr, 0, 0x0);
|
||||||
REQUIRE(SThread::Create(threadProc, threadParam, thread, threadName, 0) != 0);
|
REQUIRE(SThread::Create(threadProc, threadParam, thread, threadName, 0) != 0);
|
||||||
|
thread.Wait(100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue