Skip to content

Commit d955ad3

Browse files
committed
fix "dev/null" test
1 parent 7f74256 commit d955ad3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/files.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ do -- testing closing file in line iteration
462462

463463
end
464464

465-
465+
if not _port then
466466
do print("testing flush")
467467
local f = io.output("/dev/null")
468468
assert(f:write("abcd")) -- write to buffer
@@ -478,7 +478,7 @@ do print("testing flush")
478478
assert(not io.flush()) -- cannot write to device
479479
assert(f:close())
480480
end
481-
481+
end
482482

483483
-- test for multiple arguments in 'lines'
484484
io.output(file); io.write"0123456789\n":close()

0 commit comments

Comments
 (0)