summaryrefslogtreecommitdiff
path: root/tests/modules/stdin/test.lua
diff options
context:
space:
mode:
authorSaikari <[email protected]>2026-02-02 16:17:42 +0300
committerSaikari <[email protected]>2026-02-02 16:17:42 +0300
commit03f89e0d3a6bff306ad95705afe18c5e12792bbc (patch)
tree84c58487e9d29fb6510dac62973aef1cfd5bbdcb /tests/modules/stdin/test.lua
parent307947cc644243e9b8248a14d8ee2b3b94a549fc (diff)
refactor: fix pwsh and cosmocc "exec format error" handling for MacOS
Diffstat (limited to 'tests/modules/stdin/test.lua')
-rw-r--r--tests/modules/stdin/test.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/modules/stdin/test.lua b/tests/modules/stdin/test.lua
index 2c3460f0d..f3490a064 100644
--- a/tests/modules/stdin/test.lua
+++ b/tests/modules/stdin/test.lua
@@ -35,6 +35,10 @@ function main(t)
local xmake = path.translate(os.programfile())
local is_ape = binutils.format(xmake) == "ape"
local run_stdin = string.format('"%s" l --stdin', xmake)
+ -- Fix pwsh and cosmocc "exec format error" for MacOS
+ if is_ape and is_host("macosx") then
+ run_stdin = string.format("sh -c ' \"%s\" l --stdin '", xmake)
+ end
local pwsh = ""
if is_host("windows") then
-- Test cmd