From 08306c049ecdf43ff89f001df1b4a63ca6424006 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov <0x7fffff@guattari.ru> Date: Fri, 19 Aug 2022 16:20:23 +0400 Subject: test --- source/test/programs/CMakeLists.txt | 10 +++++----- source/test/programs/signals.c | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'source/test') 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 TEST("abort") { - abort(); + //abort(); } TEST("invalid access") { - *(volatile int *) NULL = 42; + //*(volatile int *) NULL = 42; } int main(int argc, char **argv) { -- cgit v1.2.3