summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorMitya Selivanov <0x7fffff@guattari.ru>2022-08-19 17:22:53 +0400
committerMitya Selivanov <0x7fffff@guattari.ru>2022-08-19 17:22:53 +0400
commit4446ccd921d2cfbf4e9bb57ed60ba5564ea00609 (patch)
tree7694041dca5832140d9866cfc530a36bf66c9800 /source
parente815cf7205aea6e881bfdd9e26504b40f544842d (diff)
downloadkit-4446ccd921d2cfbf4e9bb57ed60ba5564ea00609.zip
test win32
Diffstat (limited to 'source')
-rw-r--r--source/kit_test/test.c2
-rw-r--r--source/test/programs/signals.cpp4
2 files changed, 2 insertions, 4 deletions
diff --git a/source/kit_test/test.c b/source/kit_test/test.c
index 2daf94b..471194e 100644
--- a/source/kit_test/test.c
+++ b/source/kit_test/test.c
@@ -7,8 +7,6 @@
#include <setjmp.h>
#include <signal.h>
-#include <stdlib.h>
-
kit_tests_list_t kit_tests_list = { 0 };
static void report(int i, int line, int ok) {
diff --git a/source/test/programs/signals.cpp b/source/test/programs/signals.cpp
index 1e4698f..97cae83 100644
--- a/source/test/programs/signals.cpp
+++ b/source/test/programs/signals.cpp
@@ -6,7 +6,7 @@
/* FIXME
* MSVC tests fail in GitHub Actions.
*/
-#ifndef _MSVC
+#ifndef _MSC_VER
TEST("c++ exception") {
throw std::exception {};
}
@@ -21,7 +21,7 @@ TEST("invalid access") {
#endif
int main(int argc, char **argv) {
-#ifndef _MSVC
+#ifndef _MSC_VER
if (run_tests(argc, argv) != 1)
return 1;
#endif