aboutsummaryrefslogtreecommitdiff
path: root/unit_tests
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2025-03-14 11:32:58 +0100
committerBenoit Germain <benoit.germain@ubisoft.com>2025-03-14 11:32:58 +0100
commitdee0756ff21c1f7dd4eea067dfb90feb1ba4763d (patch)
tree981ddd4ddc22bc1fae54ce3e0034da746571fb1a /unit_tests
parent536a64557c82c350fd73ea64c6d4dd1737896579 (diff)
downloadlanes-dee0756ff21c1f7dd4eea067dfb90feb1ba4763d.tar.gz
lanes-dee0756ff21c1f7dd4eea067dfb90feb1ba4763d.tar.bz2
lanes-dee0756ff21c1f7dd4eea067dfb90feb1ba4763d.zip
lanes/core.[so|dll] → lanes_core.[so|dll]
Diffstat (limited to 'unit_tests')
-rw-r--r--unit_tests/embedded_tests.cpp4
-rw-r--r--unit_tests/lane_tests.cpp2
-rw-r--r--unit_tests/shared.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/unit_tests/embedded_tests.cpp b/unit_tests/embedded_tests.cpp
index d4794df..a63383a 100644
--- a/unit_tests/embedded_tests.cpp
+++ b/unit_tests/embedded_tests.cpp
@@ -80,7 +80,7 @@ namespace
80 class EmbeddedLuaState : public LuaState 80 class EmbeddedLuaState : public LuaState
81 { 81 {
82 private: 82 private:
83 HMODULE hCore{ LoadLibraryW(L"lanes\\core") }; 83 HMODULE hCore{ LoadLibraryW(L"lanes_core") };
84 lua_CFunction lanes_register{}; 84 lua_CFunction lanes_register{};
85 85
86 public: 86 public:
@@ -93,7 +93,7 @@ namespace
93 { 93 {
94 94
95 if (!hCore) { 95 if (!hCore) {
96 throw std::logic_error("Could not load lanes.core"); 96 throw std::logic_error("Could not load lanes_core");
97 } 97 }
98 luaopen_lanes_embedded_t const _p_luaopen_lanes_embedded{ reinterpret_cast<luaopen_lanes_embedded_t>(GetProcAddress(hCore, "luaopen_lanes_embedded")) }; 98 luaopen_lanes_embedded_t const _p_luaopen_lanes_embedded{ reinterpret_cast<luaopen_lanes_embedded_t>(GetProcAddress(hCore, "luaopen_lanes_embedded")) };
99 if (!_p_luaopen_lanes_embedded) { 99 if (!_p_luaopen_lanes_embedded) {
diff --git a/unit_tests/lane_tests.cpp b/unit_tests/lane_tests.cpp
index 196b31d..bf239ba 100644
--- a/unit_tests/lane_tests.cpp
+++ b/unit_tests/lane_tests.cpp
@@ -170,7 +170,7 @@ TEST_CASE("lanes.gen")
170 S.requireSuccess("lanes.gen('utf8?', function() end)"); 170 S.requireSuccess("lanes.gen('utf8?', function() end)");
171#endif // LUA_VERSION_NUM < 503 171#endif // LUA_VERSION_NUM < 503
172 172
173 S.requireSuccess("lanes.gen('lanes.core', function() end)"); 173 S.requireSuccess("lanes.gen('lanes_core', function() end)");
174 // "*" repeated or combined with anything else is forbidden 174 // "*" repeated or combined with anything else is forbidden
175 S.requireFailure("lanes.gen('*', '*', function() end)"); 175 S.requireFailure("lanes.gen('*', '*', function() end)");
176 S.requireFailure("lanes.gen('base', '*', function() end)"); 176 S.requireFailure("lanes.gen('base', '*', function() end)");
diff --git a/unit_tests/shared.cpp b/unit_tests/shared.cpp
index f9697a5..d139579 100644
--- a/unit_tests/shared.cpp
+++ b/unit_tests/shared.cpp
@@ -186,7 +186,7 @@ LuaState::LuaState(WithBaseLibs const withBaseLibs_, WithFixture const withFixtu
186 luaL_openlibs(L); 186 luaL_openlibs(L);
187 } else { 187 } else {
188#if LUAJIT_FLAVOR() 188#if LUAJIT_FLAVOR()
189 // lanes.core relies on the presence of jit to detect LuaJIT/PUC-Lua mismatches 189 // lanes_core relies on the presence of jit to detect LuaJIT/PUC-Lua mismatches
190 luaL_requiref(L, LUA_JITLIBNAME, luaopen_jit, 1); 190 luaL_requiref(L, LUA_JITLIBNAME, luaopen_jit, 1);
191 lua_pop(L, 1); 191 lua_pop(L, 1);
192#endif // LUAJIT_FLAVOR 192#endif // LUAJIT_FLAVOR