summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2026-02-11 23:10:36 +0800
committerruki <[email protected]>2026-02-11 23:10:36 +0800
commit81c73f08df5dd5e396fd853a1411faa794f63b2f (patch)
treecbeb11b264f3cb41df5719aeac8ac1d0802e6d37
parentd0f0d7cab072eb292bb43e11d49d039e7a50024e (diff)
...
-rw-r--r--tests/modules/os/test.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/modules/os/test.lua b/tests/modules/os/test.lua
index 2dcab35c6..6e24f7599 100644
--- a/tests/modules/os/test.lua
+++ b/tests/modules/os/test.lua
@@ -200,7 +200,9 @@ function test_isexec(t)
io.writefile(suffix2 .. ".com", "")
t:require(os.isexec(suffix2))
else
+ os.execv("ls", {"-l", filepath})
os.vrunv("chmod", {"-x", filepath})
+ os.execv("ls", {"-l", filepath})
t:require_not(os.isexec(filepath))
os.vrunv("chmod", {"+x", filepath})
t:require(os.isexec(filepath))