From b9203ce52fc7cd58ebf3d4ce4e15789853cc626d Mon Sep 17 00:00:00 2001 From: Valentin Churavy Date: Mon, 11 Sep 2023 15:31:18 -0400 Subject: [PATCH] Fix Profiler signal listener test (#51272) The `close(t)` seems to be a typo. --- stdlib/Profile/test/runtests.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/Profile/test/runtests.jl b/stdlib/Profile/test/runtests.jl index 2d6df81b1015d..95ec7f857dad7 100644 --- a/stdlib/Profile/test/runtests.jl +++ b/stdlib/Profile/test/runtests.jl @@ -200,7 +200,6 @@ if Sys.isbsd() || Sys.islinux() script = """ print(stderr, "started\n") eof(stdin) - close(t) """ iob = Base.BufferStream() notify_exit = Base.PipeEndpoint() @@ -232,6 +231,7 @@ if Sys.isbsd() || Sys.islinux() close(notify_exit) # notify test finished s = read(iob, String) # consume test output wait(p) # wait for test completion + @test success(p) close(t) catch close(notify_exit)