aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>2026-08-31 22:22:03 +0000
committerGitHub <noreply@github.com>2026-08-31 22:22:03 +0000
commit69fde6cb9d2259b77ad2b9b3a731c02d8776b6cf (patch)
treec58f0e47544718b07486f22e56a10fafdaa022d0
parentfa9b35a0cf11bc856cbd8bffbef5ad6fb3e62a93 (diff)
downloadluasocket-copilot/check-testfiles-for-os-exit-issues.tar.gz
luasocket-copilot/check-testfiles-for-os-exit-issues.tar.bz2
luasocket-copilot/check-testfiles-for-os-exit-issues.zip
Fix test failure exit statusescopilot/check-testfiles-for-os-exit-issues
Co-authored-by: Tieske <1077043+Tieske@users.noreply.github.com>
-rw-r--r--test/smtptest.lua2
-rw-r--r--test/testclnt.lua2
-rw-r--r--test/utestclnt.lua2
3 files changed, 3 insertions, 3 deletions
diff --git a/test/smtptest.lua b/test/smtptest.lua
index 9d06054..e04dea6 100644
--- a/test/smtptest.lua
+++ b/test/smtptest.lua
@@ -35,7 +35,7 @@ end
35local fail = function(s) 35local fail = function(s)
36 s = s or "failed!" 36 s = s or "failed!"
37 print(s) 37 print(s)
38 os.exit() 38 os.exit(1)
39end 39end
40 40
41local readfile = function(name) 41local readfile = function(name)
diff --git a/test/testclnt.lua b/test/testclnt.lua
index bbe48bb..ae97204 100644
--- a/test/testclnt.lua
+++ b/test/testclnt.lua
@@ -16,7 +16,7 @@ function fail(...)
16 io.stderr:write("ERROR: ") 16 io.stderr:write("ERROR: ")
17 printf(...) 17 printf(...)
18 io.stderr:write("!\n") 18 io.stderr:write("!\n")
19 os.exit() 19 os.exit(1)
20end 20end
21 21
22function warn(...) 22function warn(...)
diff --git a/test/utestclnt.lua b/test/utestclnt.lua
index 395260c..7f74f99 100644
--- a/test/utestclnt.lua
+++ b/test/utestclnt.lua
@@ -12,7 +12,7 @@ function fail(...)
12 local s = string.format(...) 12 local s = string.format(...)
13 io.stderr:write("ERROR: ", s, "!\n") 13 io.stderr:write("ERROR: ", s, "!\n")
14socket.sleep(3) 14socket.sleep(3)
15 os.exit() 15 os.exit(1)
16end 16end
17 17
18function warn(...) 18function warn(...)