Skip to content

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

Merged
ligurio merged 1 commit intomasterfrom
ligurio/gh-80-fix-use-users-LUA_PATH
Apr 6, 2026
Merged

luzer/tests: fix a test for LuaJIT friendly mode#81
ligurio merged 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

@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

The test luzer_luajit_friendly_test fails due to the hardcoded
LUA_PATH if one builds luzer with a non-system LuaJIT because
LuaJIT's 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 force-pushed the ligurio/gh-80-fix-use-users-LUA_PATH branch from 2cfd3c6 to f14dca9 Compare April 6, 2026 11:29
@ligurio ligurio merged commit 07fd2cd into master Apr 6, 2026
16 checks passed
@ligurio ligurio deleted the ligurio/gh-80-fix-use-users-LUA_PATH branch April 6, 2026 11:31
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