From 942687d1cfa65b11cd5dbd9556a99e9be7b60c3b Mon Sep 17 00:00:00 2001
From: Mitya Selivanov <automainint@guattari.tech>
Date: Wed, 6 Sep 2023 03:05:09 +0200
Subject: test

---
 source/kit/time.h             |  5 -----
 source/kit_test/shared.inl.h  |  5 -----
 source/tests/test_signals.cpp | 11 ++++++-----
 3 files changed, 6 insertions(+), 15 deletions(-)

diff --git a/source/kit/time.h b/source/kit/time.h
index e5053dc..cf0f070 100644
--- a/source/kit/time.h
+++ b/source/kit/time.h
@@ -12,11 +12,6 @@
 #endif
 
 #ifdef __MINGW32__
-// struct timespec {
-//   time_t tv_sec;
-//   long   tv_nsec;
-// };
-
 #  ifndef WIN32_LEAN_AND_MEAN
 #    define WIN32_LEAN_AND_MEAN 1
 #  endif
diff --git a/source/kit_test/shared.inl.h b/source/kit_test/shared.inl.h
index 4d894f4..34ccb07 100644
--- a/source/kit_test/shared.inl.h
+++ b/source/kit_test/shared.inl.h
@@ -17,11 +17,6 @@
 #  endif
 
 #  ifdef __MINGW32__
-// struct timespec {
-//   time_t tv_sec;
-//   long   tv_nsec;
-// };
-
 #    ifndef WIN32_LEAN_AND_MEAN
 #      define WIN32_LEAN_AND_MEAN 1
 #    endif
diff --git a/source/tests/test_signals.cpp b/source/tests/test_signals.cpp
index 0f6d77a..1b4acc7 100644
--- a/source/tests/test_signals.cpp
+++ b/source/tests/test_signals.cpp
@@ -3,10 +3,6 @@
 #include <cstdlib>
 #include <stdexcept>
 
-/*  FIXME
- *  MSVC tests fail in GitHub Actions.
- */
-
 TEST("c++ exception") {
   throw std::exception();
 }
@@ -20,7 +16,12 @@ TEST("invalid access") {
 }
 
 int main(int argc, char **argv) {
-#ifndef _MSC_VER
+  //  FIXME
+  //  On Windows, doesn't work for some reason...
+  //  Both MSVC and MinGW.
+  //
+
+#ifndef _WIN32
   if (run_tests(argc, argv) != 1)
     return 1;
 #endif
-- 
cgit v1.2.3