diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2025-03-17 12:34:08 +0100 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2025-03-17 12:34:08 +0100 |
commit | a57690123ae3ce5bdd7e970690f1380e88e4eaf6 (patch) | |
tree | d526e8f545cef2b1c23978cb9ee5c94dbc9cda2c /unit_tests/shared.h | |
parent | d93de7ca51edea911eeecb7c8edcffe77298ed07 (diff) | |
download | lanes-a57690123ae3ce5bdd7e970690f1380e88e4eaf6.tar.gz lanes-a57690123ae3ce5bdd7e970690f1380e88e4eaf6.tar.bz2 lanes-a57690123ae3ce5bdd7e970690f1380e88e4eaf6.zip |
Raise a regular Lua error instead of throwing a C++ std::logic_error exception in Universe::UniverseGC
Diffstat (limited to '')
-rw-r--r-- | unit_tests/shared.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/unit_tests/shared.h b/unit_tests/shared.h index 8a84a94..b884df0 100644 --- a/unit_tests/shared.h +++ b/unit_tests/shared.h | |||
@@ -66,8 +66,9 @@ class LuaState | |||
66 | enum class [[nodiscard]] TestType | 66 | enum class [[nodiscard]] TestType |
67 | { | 67 | { |
68 | AssertNoLuaError, | 68 | AssertNoLuaError, |
69 | AssertNoThrow, | 69 | #if LUA_VERSION_NUM >= 504 // warnings are a Lua 5.4 feature |
70 | AssertThrows, | 70 | AssertWarns, |
71 | #endif // LUA_VERSION_NUM | ||
71 | }; | 72 | }; |
72 | 73 | ||
73 | struct FileRunnerParam | 74 | struct FileRunnerParam |