summaryrefslogtreecommitdiff
path: root/tests/modules/stdin/test.lua
diff options
context:
space:
mode:
authorSaikari <[email protected]>2026-02-02 13:45:17 +0300
committerSaikari <[email protected]>2026-02-02 13:45:17 +0300
commit081a3360c9d4c7d15ec035129edd25719e9fd9ab (patch)
treecbf4749f34778b6a046341035134eb795d4fd360 /tests/modules/stdin/test.lua
parenta7d56edc0dfdcfce0d4c0eb56465c63c86bf5f98 (diff)
refactor: correct variable usage for ape programfile detection in main function
Diffstat (limited to 'tests/modules/stdin/test.lua')
-rw-r--r--tests/modules/stdin/test.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/modules/stdin/test.lua b/tests/modules/stdin/test.lua
index 4d24d1dd6..985346d39 100644
--- a/tests/modules/stdin/test.lua
+++ b/tests/modules/stdin/test.lua
@@ -32,7 +32,7 @@ function main(t)
-- Fix pwsh and cosmocc "err: ape error: l: not found (maybe chmod +x or ./ needed)" for Linux
xmake = fix_ape_programfile(xmake)
- local is_ape = binutils.format(os.programfile()) == "ape"
+ local is_ape = binutils.format(xmake) == "ape"
local run_stdin = string.format('"%s" l --stdin', xmake)
if not is_host("windows") then