diff options
author | Mitya Selivanov <0x7fffff@guattari.ru> | 2022-08-19 16:48:00 +0400 |
---|---|---|
committer | Mitya Selivanov <0x7fffff@guattari.ru> | 2022-08-19 16:48:00 +0400 |
commit | 844e7e997c920f6783e31924c941aed067eea98c (patch) | |
tree | 47908904144f3bb1b525b47f24a1f727d37c58b8 | |
parent | 5f339b053115ec3a5ab0772c40c36ebec418808b (diff) | |
download | kit-844e7e997c920f6783e31924c941aed067eea98c.zip |
test win32
-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) { |