diff options
author | Mitya Selivanov <0x7fffff@guattari.ru> | 2022-08-19 16:20:23 +0400 |
---|---|---|
committer | Mitya Selivanov <0x7fffff@guattari.ru> | 2022-08-19 16:20:23 +0400 |
commit | 08306c049ecdf43ff89f001df1b4a63ca6424006 (patch) | |
tree | 7b36774163d75900457da3050c3ab91c2785dd78 /source/test | |
parent | 5ad5cb5a1b5642f40e3df158ff1979de8487dc10 (diff) | |
download | kit-08306c049ecdf43ff89f001df1b4a63ca6424006.zip |
test
Diffstat (limited to 'source/test')
-rw-r--r-- | source/test/programs/CMakeLists.txt | 10 | ||||
-rw-r--r-- | source/test/programs/signals.c | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/source/test/programs/CMakeLists.txt b/source/test/programs/CMakeLists.txt index 9c58599..eea6d87 100644 --- a/source/test/programs/CMakeLists.txt +++ b/source/test/programs/CMakeLists.txt @@ -7,7 +7,7 @@ if(KIT_ENABLE_TESTING) set_tests_properties( too_many_tests_test PROPERTIES - TIMEOUT "30") + TIMEOUT "15") add_executable(too_many_assertions too_many_assertions.c) target_link_libraries(too_many_assertions ${KIT_TEST_LIBRARY}) @@ -17,7 +17,7 @@ if(KIT_ENABLE_TESTING) set_tests_properties( too_many_assertions_test PROPERTIES - TIMEOUT "30") + TIMEOUT "15") add_executable(cpp_example cpp_example.cpp) target_link_libraries(cpp_example ${KIT_TEST_LIBRARY}) @@ -27,15 +27,15 @@ if(KIT_ENABLE_TESTING) set_tests_properties( cpp_example_test PROPERTIES - TIMEOUT "30") + TIMEOUT "15") add_executable(signals signals.c) target_link_libraries(signals ${KIT_TEST_LIBRARY}) add_test( NAME signals_test - COMMAND signals) + COMMAND signals --no-carriage-return) set_tests_properties( signals_test PROPERTIES - TIMEOUT "30") + TIMEOUT "15") endif() diff --git a/source/test/programs/signals.c b/source/test/programs/signals.c index 935623a..add9e3d 100644 --- a/source/test/programs/signals.c +++ b/source/test/programs/signals.c @@ -3,11 +3,11 @@ #include <stdlib.h> TEST("abort") { - abort(); + //abort(); } TEST("invalid access") { - *(volatile int *) NULL = 42; + //*(volatile int *) NULL = 42; } int main(int argc, char **argv) { |