Skip to content

Commit cc2f17d

Browse files
single-thread all --sysimage-native-code=no tests
1 parent 0163991 commit cc2f17d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test/cmdlineargs.jl

+8-2
Original file line numberDiff line numberDiff line change
@@ -1080,13 +1080,19 @@ run(pipeline(devnull, `$(joinpath(Sys.BINDIR, Base.julia_exename())) --lisp`, de
10801080
let exename = `$(Base.julia_cmd()) --startup-file=no`
10811081
@test readchomp(`$exename --sysimage-native-code=yes -E
10821082
"Bool(Base.JLOptions().use_sysimage_native_code)"`) == "true"
1083-
@test readchomp(`$exename --sysimage-native-code=no -E
1083+
# TODO: Make this safe in the presence of two single-thread threadpools
1084+
# see https://github.com/JuliaLang/julia/issues/57198
1085+
@test readchomp(`$exename --sysimage-native-code=no -t1,0 -E
10841086
"Bool(Base.JLOptions().use_sysimage_native_code)"`) == "false"
10851087
end
10861088

10871089
# backtrace contains line number info (esp. on windows #17179)
1090+
10881091
for precomp in ("yes", "no")
1089-
succ, out, bt = readchomperrors(`$(Base.julia_cmd()) --startup-file=no --sysimage-native-code=$precomp -E 'sqrt(-2)'`)
1092+
# TODO: Make this safe in the presence of two single-thread threadpools
1093+
# see https://github.com/JuliaLang/julia/issues/57198
1094+
threads = precomp == "no" ? `-t1,0` : ``
1095+
succ, out, bt = readchomperrors(`$(Base.julia_cmd()) $threads --startup-file=no --sysimage-native-code=$precomp -E 'sqrt(-2)'`)
10901096
@test !succ
10911097
@test out == ""
10921098
@test occursin(r"\.jl:(\d+)", bt)

0 commit comments

Comments
 (0)