diff --git a/base/stream.jl b/base/stream.jl index 0558a58c151d6..a45307b883da8 100644 --- a/base/stream.jl +++ b/base/stream.jl @@ -1605,7 +1605,7 @@ end skip(s::BufferStream, n) = skip(s.buffer, n) -function reseteof(x::BufferStream) +function reseteof(s::BufferStream) lock(s.cond) do s.status = StatusOpen nothing diff --git a/test/iobuffer.jl b/test/iobuffer.jl index d82a68c61f780..0e74595d29d20 100644 --- a/test/iobuffer.jl +++ b/test/iobuffer.jl @@ -277,6 +277,7 @@ end c = zeros(UInt8,8) @test bytesavailable(bstream) == 8 @test !eof(bstream) + @test Base.reseteof(bstream) === nothing # TODO: Actually test intended effect read!(bstream,c) @test c == a[3:10] @test closewrite(bstream) === nothing