Skip to content

Commit

Permalink
test/file: remove fragile test case: test_22566
Browse files Browse the repository at this point in the history
  • Loading branch information
iblislin committed Oct 7, 2017
1 parent b84131f commit 73a73fa
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions test/file.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1152,34 +1152,3 @@ end
test_13559()
end
@test_throws ArgumentError mkpath("fakepath", -1)

# issue #22566
if !Sys.iswindows()
function test_22566()
fn = tempname()
run(`mkfifo $fn`)

script = """
using Test
x = open($(repr(fn)), "w")
write(x, 0x42)
flush(x)
Test.@test read(STDIN, Int8) == 21
close(x)
"""
cmd = `$(Base.julia_cmd()) --startup-file=no -e $script`
p = open(pipeline(cmd, stderr=STDERR), "w")

r = open(fn, "r")
@test read(r, Int8) == 66
write(p, 0x15)
close(r)
@test success(p)
rm(fn)
end

# repeat opening/closing fifo file, ensure no EINTR popped out
for i 1:50
test_22566()
end
end # !Sys.iswindows

0 comments on commit 73a73fa

Please sign in to comment.