diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-07-08 13:33:57 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-07-08 13:33:57 -0300 |
| commit | 942c10a5e33811a08a290ec15031c950a6d17c99 (patch) | |
| tree | 114395a69857609bdd6c220f85476812f0fd5fb1 /testes/files.lua | |
| parent | 848568790826b7e201f84682185b5b605c473016 (diff) | |
| download | lua-942c10a5e33811a08a290ec15031c950a6d17c99.tar.gz lua-942c10a5e33811a08a290ec15031c950a6d17c99.tar.bz2 lua-942c10a5e33811a08a290ec15031c950a6d17c99.zip | |
Optional initialization for global declarations
Diffstat (limited to '')
| -rw-r--r-- | testes/files.lua | 4 |
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 | |||
| 715 | end | 715 | end |
| 716 | 716 | ||
| 717 | 717 | ||
| 718 | if T and T.nonblock then | 718 | if 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") | |||
| 840 | local x = string.rep("a", 10000) | 840 | local x = string.rep("a", 10000) |
| 841 | assert(os.date(x) == x) | 841 | assert(os.date(x) == x) |
| 842 | local t = os.time() | 842 | local t = os.time() |
| 843 | global D; D = os.date("*t", t) | 843 | global D = os.date("*t", t) |
| 844 | assert(os.date(string.rep("%d", 1000), t) == | 844 | assert(os.date(string.rep("%d", 1000), t) == |
| 845 | string.rep(os.date("%d", t), 1000)) | 845 | string.rep(os.date("%d", t), 1000)) |
| 846 | assert(os.date(string.rep("%", 200)) == string.rep("%", 100)) | 846 | assert(os.date(string.rep("%", 200)) == string.rep("%", 100)) |
