Skip to content

Commit 92cc55a

Browse files
committed
Add a test for #20497.
1 parent 3269bd0 commit 92cc55a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/spawn.jl

+8
Original file line numberDiff line numberDiff line change
@@ -458,3 +458,11 @@ end
458458

459459
# readlines(::Cmd), accidentally broken in #20203
460460
@test sort(readlines(`$lscmd -A`)) == sort(readdir())
461+
462+
# issue #19864 (PR #20497)
463+
@test readchomp(pipeline(ignorestatus(
464+
`$exename --startup-file=no -e '
465+
struct Error19864 <: Exception; end
466+
Base.showerror(io::IO, e::Error19864) = print(io, "correct19864")
467+
throw(Error19864())'`),
468+
stderr=catcmd)) == "ERROR: correct19864"

0 commit comments

Comments
 (0)