diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/test/programs/CMakeLists.txt | 2 | ||||
-rw-r--r-- | source/test/programs/signals.cpp (renamed from source/test/programs/signals.c) | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source/test/programs/CMakeLists.txt b/source/test/programs/CMakeLists.txt index d6c7968..7decb0d 100644 --- a/source/test/programs/CMakeLists.txt +++ b/source/test/programs/CMakeLists.txt @@ -29,7 +29,7 @@ if(KIT_ENABLE_TESTING) # PROPERTIES # TIMEOUT "15") - add_executable(signals signals.c) + add_executable(signals signals.cpp) target_link_libraries(signals ${KIT_TEST_LIBRARY}) add_test( NAME signals_test diff --git a/source/test/programs/signals.c b/source/test/programs/signals.cpp index 7a9af25..d468d83 100644 --- a/source/test/programs/signals.c +++ b/source/test/programs/signals.cpp @@ -1,7 +1,7 @@ #include "../../kit_test/test.h" -#include <stdlib.h> -#include <stdio.h> +#include <cstdio> +#include <cstdlib> TEST("abort") { printf("** ABORT\n\n"); @@ -10,7 +10,7 @@ TEST("abort") { TEST("invalid access") { printf("** INVALID ACCESS\n\n"); - *(volatile int *) NULL = 42; + *(volatile int *) nullptr = 42; } int main(int argc, char **argv) { |