From becd380829ea6cdc104722e36f29fdd52e9a4faa Mon Sep 17 00:00:00 2001 From: d-netto Date: Fri, 20 Sep 2024 17:07:38 -0300 Subject: [PATCH] fix cmdlineargs test in our fork --- test/cmdlineargs.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) ==