Skip to content

Commit

Permalink
REPL: disable flaky win32 stacktrace tests (JuliaLang#55408)
Browse files Browse the repository at this point in the history
Disables these tests on win32 that have been flaky on that platform
since February at least JuliaLang#53340
  • Loading branch information
IanButterworth authored and lazarusA committed Aug 17, 2024
1 parent 323610f commit 28bfc99
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions stdlib/REPL/test/repl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,9 @@ fake_repl(options = REPL.Options(confirm_exit=false,hascolor=true)) do stdin_wri
@test occursin("shell> ", s) # check for the echo of the prompt
@test occursin("'", s) # check for the echo of the input
s = readuntil(stdout_read, "\n\n")
@test startswith(s, "\e[0mERROR: unterminated single quote\nStacktrace:\n [1] ") ||
startswith(s, "\e[0m\e[1m\e[91mERROR: \e[39m\e[22m\e[91munterminated single quote\e[39m\nStacktrace:\n [1] ")
@test(startswith(s, "\e[0mERROR: unterminated single quote\nStacktrace:\n [1] ") ||
startswith(s, "\e[0m\e[1m\e[91mERROR: \e[39m\e[22m\e[91munterminated single quote\e[39m\nStacktrace:\n [1] "),
skip = Sys.iswindows() && Sys.WORD_SIZE == 32)
write(stdin_write, "\b")
wait(t)
end
Expand Down Expand Up @@ -1650,12 +1651,12 @@ fake_repl() do stdin_write, stdout_read, repl
write(stdin_write, "foobar\n")
readline(stdout_read)
@test readline(stdout_read) == "\e[0mERROR: UndefVarError: `foobar` not defined in `Main`"
@test readline(stdout_read) == ""
@test readline(stdout_read) == "" skip = Sys.iswindows() && Sys.WORD_SIZE == 32
readuntil(stdout_read, "julia> ", keep=true)
# check that top-level error did not change `err`
write(stdin_write, "err\n")
readline(stdout_read)
@test readline(stdout_read) == "\e[0m"
@test readline(stdout_read) == "\e[0m" skip = Sys.iswindows() && Sys.WORD_SIZE == 32
readuntil(stdout_read, "julia> ", keep=true)
# generate deeper error
write(stdin_write, "foo() = foobar\n")
Expand Down

0 comments on commit 28bfc99

Please sign in to comment.