threading_posix: Increase stack size in test
16 KB is not enough for the linux thread to be spawned so bump up to 16MB
This commit is contained in:
parent
d76e408681
commit
aa332dcc8e
|
@ -813,7 +813,7 @@ TEST_CASE("Create and Run Thread", "Thread") {
|
||||||
result = Wait(Thread::GetCurrentThread(), false, 50ms);
|
result = Wait(Thread::GetCurrentThread(), false, 50ms);
|
||||||
REQUIRE(result == WaitResult::kTimeout);
|
REQUIRE(result == WaitResult::kTimeout);
|
||||||
|
|
||||||
params.stack_size = 16 * 1024;
|
params.stack_size = 16 * 1024 * 1024;
|
||||||
thread = Thread::Create(params, [] {
|
thread = Thread::Create(params, [] {
|
||||||
while (true) {
|
while (true) {
|
||||||
Thread::Exit(-1);
|
Thread::Exit(-1);
|
||||||
|
|
|
@ -505,6 +505,7 @@ class PosixCondition<Thread> : public PosixConditionBase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (pthread_create(&thread_, &attr, ThreadStartRoutine, start_data) != 0) {
|
if (pthread_create(&thread_, &attr, ThreadStartRoutine, start_data) != 0) {
|
||||||
|
pthread_attr_destroy(&attr);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
pthread_attr_destroy(&attr);
|
pthread_attr_destroy(&attr);
|
||||||
|
|
Loading…
Reference in New Issue