aboutsummaryrefslogtreecommitdiff
path: root/unit_tests/shared.h
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2025-03-17 12:34:08 +0100
committerBenoit Germain <benoit.germain@ubisoft.com>2025-03-17 12:34:08 +0100
commita57690123ae3ce5bdd7e970690f1380e88e4eaf6 (patch)
treed526e8f545cef2b1c23978cb9ee5c94dbc9cda2c /unit_tests/shared.h
parentd93de7ca51edea911eeecb7c8edcffe77298ed07 (diff)
downloadlanes-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.h5
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
66enum class [[nodiscard]] TestType 66enum 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
73struct FileRunnerParam 74struct FileRunnerParam