Skip to content

luzer/tests: fix a test for LuaJIT friendly mode#81

Open
ligurio wants to merge 1 commit intomasterfrom
ligurio/gh-80-fix-use-users-LUA_PATH
Open

luzer/tests: fix a test for LuaJIT friendly mode#81
ligurio wants to merge 1 commit intomasterfrom
ligurio/gh-80-fix-use-users-LUA_PATH

Conversation

@ligurio
Copy link
Copy Markdown
Owner

@ligurio ligurio commented Mar 23, 2026

The test luzer_luajit_friendly_test fails due to the hardcoded LUA_PATH if one builds luzer with non-system LuaJIT because LuaJIT internal module is used by the test. The patch fixes that by using environment variable LUA_PATH. The environment variable LUA_PATH should be set before running CMake configuration.

Fixes #80

The test luzer_luajit_friendly_test fails due to the hardcoded
LUA_PATH if one builds luzer with non-system LuaJIT because LuaJIT
internal module is used by the test. The patch fixes that by using
environment variable LUA_PATH. The environment variable LUA_PATH
should be set before running CMake configuration.

Fixes #80
@ligurio ligurio requested a review from Buristan March 23, 2026 17:39
Copy link
Copy Markdown
Collaborator

@Buristan Buristan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, with a minor nits regarding the commit message.

LUA_PATH if one builds luzer with non-system LuaJIT because LuaJIT

Typo: s/non-system LuaJIT/a non-system LuaJIT/
Typo: s/because LuaJIT/because LuaJIT's/

internal module is used by the test. The patch fixes that by using

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

luzer_luajit_friendly_test fails with custom LuaJIT

2 participants