summaryrefslogtreecommitdiff
path: root/source/test
diff options
context:
space:
mode:
authorMitya Selivanov <0x7fffff@guattari.ru>2022-08-18 17:37:03 +0400
committerMitya Selivanov <0x7fffff@guattari.ru>2022-08-18 17:37:03 +0400
commit75ac1953b6d07eacc32b2eff67f454af3ac6d900 (patch)
tree0f75821cfe0c137a430c99279f18c971618d541d /source/test
parent429c47515230ca54aa7c54b79fb6b1be8e0ce92e (diff)
downloadkit-75ac1953b6d07eacc32b2eff67f454af3ac6d900.zip
[macOS] Fix stack size; add --quiet option for testing
Diffstat (limited to 'source/test')
-rw-r--r--source/test/programs/CMakeLists.txt6
-rw-r--r--source/test/unittests/condition_variable.test.c2
-rw-r--r--source/test/unittests/thread.test.c2
3 files changed, 4 insertions, 6 deletions
diff --git a/source/test/programs/CMakeLists.txt b/source/test/programs/CMakeLists.txt
index e9f8856..24932bd 100644
--- a/source/test/programs/CMakeLists.txt
+++ b/source/test/programs/CMakeLists.txt
@@ -3,7 +3,7 @@ if(KIT_ENABLE_TESTING)
target_link_libraries(too_many_tests ${KIT_TEST_LIBRARY})
add_test(
NAME too_many_tests_test
- COMMAND too_many_tests)
+ COMMAND too_many_tests --quiet)
set_tests_properties(
too_many_tests_test
PROPERTIES
@@ -13,7 +13,7 @@ if(KIT_ENABLE_TESTING)
target_link_libraries(too_many_assertions ${KIT_TEST_LIBRARY})
add_test(
NAME too_many_assertions_test
- COMMAND too_many_assertions)
+ COMMAND too_many_assertions --quiet)
set_tests_properties(
too_many_assertions_test
PROPERTIES
@@ -23,7 +23,7 @@ if(KIT_ENABLE_TESTING)
target_link_libraries(cpp_example ${KIT_TEST_LIBRARY})
add_test(
NAME cpp_example_test
- COMMAND cpp_example)
+ COMMAND cpp_example --quiet)
set_tests_properties(
cpp_example_test
PROPERTIES
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);
}