From 75ac1953b6d07eacc32b2eff67f454af3ac6d900 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov <0x7fffff@guattari.ru> Date: Thu, 18 Aug 2022 17:37:03 +0400 Subject: [macOS] Fix stack size; add --quiet option for testing --- source/test/unittests/condition_variable.test.c | 2 -- source/test/unittests/thread.test.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'source/test/unittests') diff --git a/source/test/unittests/condition_variable.test.c b/source/test/unittests/condition_variable.test.c index f354b4c..63b82b4 100644 --- a/source/test/unittests/condition_variable.test.c +++ b/source/test/unittests/condition_variable.test.c @@ -32,8 +32,6 @@ static int test_run(void *p) { } TEST("condition variable") { - printf("\n\n%% condition variable\n\n"); - test_data_t data; REQUIRE(mtx_init(&data.m, mtx_plain) == thrd_success); REQUIRE(cnd_init(&data.send) == thrd_success); diff --git a/source/test/unittests/thread.test.c b/source/test/unittests/thread.test.c index f60ad18..a797fee 100644 --- a/source/test/unittests/thread.test.c +++ b/source/test/unittests/thread.test.c @@ -39,7 +39,7 @@ TEST("thread run") { TEST("thread stack size") { thrd_t foo; - REQUIRE(thrd_create_with_stack(&foo, test_nothing, NULL, 200000) == + REQUIRE(thrd_create_with_stack(&foo, test_nothing, NULL, 30000) == thrd_success); REQUIRE(thrd_join(foo, NULL) == thrd_success); } -- cgit v1.2.3