|
130 | 130 | ("--startup-file=no", false), |
131 | 131 | ("--startup-file=yes", true), |
132 | 132 |
|
133 | | - # ("--sysimage-native-code=no", false), # takes a lot longer (30s) |
134 | | - ("--sysimage-native-code=yes", true), |
135 | | - |
136 | 133 | ("--pkgimages=yes", true), |
137 | 134 | ("--pkgimages=no", false), |
138 | 135 | ) |
@@ -1086,22 +1083,12 @@ run(pipeline(devnull, `$(joinpath(Sys.BINDIR, Base.julia_exename())) --lisp`, de |
1086 | 1083 | @test readchomperrors(`$(joinpath(Sys.BINDIR, Base.julia_exename())) -Cnative --lisp`) == |
1087 | 1084 | (false, "", "ERROR: --lisp must be specified as the first argument") |
1088 | 1085 |
|
1089 | | -# --sysimage-native-code={yes|no} |
1090 | | -let exename = `$(Base.julia_cmd()) --startup-file=no` |
1091 | | - @test readchomp(`$exename --sysimage-native-code=yes -E |
1092 | | - "Bool(Base.JLOptions().use_sysimage_native_code)"`) == "true" |
1093 | | - # TODO: Make this safe in the presence of two single-thread threadpools |
1094 | | - # see https://github.com/JuliaLang/julia/issues/57198 |
1095 | | - @test readchomp(`$exename --sysimage-native-code=no -t1,0 -E |
1096 | | - "Bool(Base.JLOptions().use_sysimage_native_code)"`) == "false" |
1097 | | -end |
1098 | | - |
1099 | 1086 | # backtrace contains line number info (esp. on windows #17179) |
1100 | | -for precomp in ("yes", "no") |
1101 | | - # TODO: Make this safe in the presence of two single-thread threadpools |
| 1087 | +let |
| 1088 | + # TODO: Make this safe in the presence of two single-thread threadpools with |
| 1089 | + # --sysimage-native-code=no, though that option is deprecated. |
1102 | 1090 | # see https://github.com/JuliaLang/julia/issues/57198 |
1103 | | - threads = precomp == "no" ? `-t1,0` : `` |
1104 | | - succ, out, bt = readchomperrors(`$(Base.julia_cmd()) $threads --startup-file=no --sysimage-native-code=$precomp -E 'sqrt(-2)'`) |
| 1091 | + succ, out, bt = readchomperrors(`$(Base.julia_cmd()) --startup-file=no -E 'sqrt(-2)'`) |
1105 | 1092 | @test !succ |
1106 | 1093 | @test out == "" |
1107 | 1094 | @test occursin(r"\.jl:(\d+)", bt) |
|
0 commit comments