aboutsummaryrefslogtreecommitdiff
path: root/testes/files.lua
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-07-08 13:33:57 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-07-08 13:33:57 -0300
commit942c10a5e33811a08a290ec15031c950a6d17c99 (patch)
tree114395a69857609bdd6c220f85476812f0fd5fb1 /testes/files.lua
parent848568790826b7e201f84682185b5b605c473016 (diff)
downloadlua-942c10a5e33811a08a290ec15031c950a6d17c99.tar.gz
lua-942c10a5e33811a08a290ec15031c950a6d17c99.tar.bz2
lua-942c10a5e33811a08a290ec15031c950a6d17c99.zip
Optional initialization for global declarations
Diffstat (limited to 'testes/files.lua')
-rw-r--r--testes/files.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/testes/files.lua b/testes/files.lua
index d4e327b7..7146ac7c 100644
--- a/testes/files.lua
+++ b/testes/files.lua
@@ -715,7 +715,7 @@ do
715end 715end
716 716
717 717
718if T and T.nonblock then 718if T and T.nonblock and not _port then
719 print("testing failed write") 719 print("testing failed write")
720 720
721 -- unable to write anything to /dev/full 721 -- unable to write anything to /dev/full
@@ -840,7 +840,7 @@ assert(os.date("!\0\0") == "\0\0")
840local x = string.rep("a", 10000) 840local x = string.rep("a", 10000)
841assert(os.date(x) == x) 841assert(os.date(x) == x)
842local t = os.time() 842local t = os.time()
843global D; D = os.date("*t", t) 843global D = os.date("*t", t)
844assert(os.date(string.rep("%d", 1000), t) == 844assert(os.date(string.rep("%d", 1000), t) ==
845 string.rep(os.date("%d", t), 1000)) 845 string.rep(os.date("%d", t), 1000))
846assert(os.date(string.rep("%", 200)) == string.rep("%", 100)) 846assert(os.date(string.rep("%", 200)) == string.rep("%", 100))