summaryrefslogtreecommitdiff
path: root/tests/modules/stdin/test.lua
diff options
context:
space:
mode:
authorSaikari <[email protected]>2026-02-01 18:51:05 +0300
committerSaikari <[email protected]>2026-02-01 18:51:05 +0300
commit00343d9994967c9f83a742bb049bd1fea450c887 (patch)
treeed0d8376d01f2f4d70c88cd71a49b95d205cff89 /tests/modules/stdin/test.lua
parent1056c09cb31f7e873573d4e0a5a24d06af8297df (diff)
refactor: ensure executable permissions for xmake alias on non-Windows platforms
Diffstat (limited to 'tests/modules/stdin/test.lua')
-rw-r--r--tests/modules/stdin/test.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/modules/stdin/test.lua b/tests/modules/stdin/test.lua
index 162b58d53..e0ebe7760 100644
--- a/tests/modules/stdin/test.lua
+++ b/tests/modules/stdin/test.lua
@@ -11,6 +11,9 @@ function main(t)
os.mkdir(xmake_dir)
local xmake_alias = path.join(xmake_dir, os.host() == "windows" and "xmake.exe" or "xmake")
os.trycp(xmake, xmake_alias)
+ if os.host() ~= "windows" then
+ os.exec("chmod +x " .. xmake_alias)
+ end
return xmake_alias
end
return xmake