diff options
Diffstat (limited to 'testes/files.lua')
-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)) |