Skip to content

Commit

Permalink
test/read/jl: close temporary test streams
Browse files Browse the repository at this point in the history
  • Loading branch information
samoconnor committed Jan 17, 2016
1 parent 69f1587 commit e90ec35
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/read.jl
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ push!(l, ("Pipe", io))

end

for (name, io) in l
open_streams = []

for (name, f) in l

io = ()->(s=f(); push!(open_streams, s); s)

#println("$name readall...")
@test readall(io()) == text
Expand Down Expand Up @@ -149,6 +153,10 @@ for (name, io) in l
end
end

for s in open_streams
try close(s) end
end

for tsk in tasks
wait(tsk)
end
Expand Down

0 comments on commit e90ec35

Please sign in to comment.