diff --git a/test/cmdlineargs.jl b/test/cmdlineargs.jl index 12e0c1fe2d5025..d2f909d95daa93 100644 --- a/test/cmdlineargs.jl +++ b/test/cmdlineargs.jl @@ -363,7 +363,7 @@ let exename = `$(Base.julia_cmd()) --startup-file=no --color=no` # --gcthreads code = "print(Threads.ngcthreads())" cpu_threads = ccall(:jl_effective_threads, Int32, ()) - @test (cpu_threads == 1 ? "1" : string(div(cpu_threads, 2))) == + @test (cpu_threads == 1 ? "1" : string(cpu_threads)) == read(`$exename --threads auto -e $code`, String) == read(`$exename --threads=auto -e $code`, String) == read(`$exename -tauto -e $code`, String) ==