summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitya Selivanov <0x7fffff@guattari.ru>2022-08-19 16:48:00 +0400
committerMitya Selivanov <0x7fffff@guattari.ru>2022-08-19 16:48:00 +0400
commit844e7e997c920f6783e31924c941aed067eea98c (patch)
tree47908904144f3bb1b525b47f24a1f727d37c58b8
parent5f339b053115ec3a5ab0772c40c36ebec418808b (diff)
downloadkit-844e7e997c920f6783e31924c941aed067eea98c.zip
test win32
-rw-r--r--source/test/programs/CMakeLists.txt2
-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) {