From 7066083dcbbc5fd73a1bdb23858bafd93fcbb7bd 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 +- test/gc.jl | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/test/cmdlineargs.jl b/test/cmdlineargs.jl index 12e0c1fe2d502..e82d9afde7ce5 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 string(cpu_threads) == read(`$exename --threads auto -e $code`, String) == read(`$exename --threads=auto -e $code`, String) == read(`$exename -tauto -e $code`, String) == diff --git a/test/gc.jl b/test/gc.jl index 330c136389a4e..3b8677568df45 100644 --- a/test/gc.jl +++ b/test/gc.jl @@ -43,4 +43,3 @@ end run_nonzero_page_utilization_test() run_pg_size_test() end -