diff options
Diffstat (limited to 'unit_tests')
-rw-r--r-- | unit_tests/_pch.hpp | 2 | ||||
-rw-r--r-- | unit_tests/embedded_tests.cpp | 5 | ||||
-rw-r--r-- | unit_tests/shared.cpp | 1 |
3 files changed, 5 insertions, 3 deletions
diff --git a/unit_tests/_pch.hpp b/unit_tests/_pch.hpp index 1e98c5a..f6e5fff 100644 --- a/unit_tests/_pch.hpp +++ b/unit_tests/_pch.hpp | |||
@@ -1,5 +1,3 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #include <atomic> | 1 | #include <atomic> |
4 | #include <cassert> | 2 | #include <cassert> |
5 | #include <filesystem> | 3 | #include <filesystem> |
diff --git a/unit_tests/embedded_tests.cpp b/unit_tests/embedded_tests.cpp index a0a7bb2..04a8f87 100644 --- a/unit_tests/embedded_tests.cpp +++ b/unit_tests/embedded_tests.cpp | |||
@@ -2,6 +2,7 @@ | |||
2 | #include "shared.h" | 2 | #include "shared.h" |
3 | #include "lanes/src/lanes.hpp" | 3 | #include "lanes/src/lanes.hpp" |
4 | 4 | ||
5 | #if defined __has_include && __has_include(<windows.h>) | ||
5 | #include <windows.h> | 6 | #include <windows.h> |
6 | 7 | ||
7 | // ################################################################################################# | 8 | // ################################################################################################# |
@@ -265,4 +266,6 @@ TEST_CASE("lanes.embedding.with custom allocator") | |||
265 | lua_close(L3); | 266 | lua_close(L3); |
266 | lua_close(L2); | 267 | lua_close(L2); |
267 | lua_close(L1); | 268 | lua_close(L1); |
268 | } \ No newline at end of file | 269 | } |
270 | |||
271 | #endif // windows.h | ||
diff --git a/unit_tests/shared.cpp b/unit_tests/shared.cpp index 2e2af73..e70d5d8 100644 --- a/unit_tests/shared.cpp +++ b/unit_tests/shared.cpp | |||
@@ -476,6 +476,7 @@ void FileRunner::performTest(FileRunnerParam const& testParam_) | |||
476 | INFO(testParam_.script); | 476 | INFO(testParam_.script); |
477 | switch (testParam_.test) { | 477 | switch (testParam_.test) { |
478 | case TestType::AssertNoLuaError: | 478 | case TestType::AssertNoLuaError: |
479 | lua_atpanic(L, _atPanic); | ||
479 | requireSuccess(root, testParam_.script); | 480 | requireSuccess(root, testParam_.script); |
480 | break; | 481 | break; |
481 | 482 | ||