From ea1690781914fdbc8000126a8a52c60e762db02c Mon Sep 17 00:00:00 2001 From: gbaraldi Date: Thu, 22 May 2025 11:12:08 -0300 Subject: [PATCH 1/2] Don't rely on the default threads for the Pkg test --- test/new.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/new.jl b/test/new.jl index f575c7223d..6036c7f5ba 100644 --- a/test/new.jl +++ b/test/new.jl @@ -2129,7 +2129,7 @@ end withenv( "EXPECTED_NUM_THREADS_DEFAULT" => "$other_nthreads_default", "EXPECTED_NUM_THREADS_INTERACTIVE" => "$default_nthreads_interactive", - "JULIA_NUM_THREADS" => "$other_nthreads_default", + "JULIA_NUM_THREADS" => "$other_nthreads_default,$default_nthreads_interactive", ) do Pkg.test("TestThreads") end @@ -2149,12 +2149,12 @@ end "EXPECTED_NUM_THREADS_INTERACTIVE" => "$default_nthreads_interactive", "JULIA_NUM_THREADS" => nothing, ) do - Pkg.test("TestThreads"; julia_args=`--threads=$other_nthreads_default`) + Pkg.test("TestThreads"; julia_args=`--threads=$other_nthreads_default,$default_nthreads_interactive`) end end @testset "--threads=other_nthreads_default,other_nthreads_interactive" begin withenv( - "EXPECTED_NUM_THREADS_DEFAULT" => "$other_nthreads_default", + / "EXPECTED_NUM_THREADS_DEFAULT" => "$other_nthreads_default", "EXPECTED_NUM_THREADS_INTERACTIVE" => "$other_nthreads_interactive", "JULIA_NUM_THREADS" => nothing, ) do From 3ffd7aef93b0d59727453944ffa4de02b0bc9e73 Mon Sep 17 00:00:00 2001 From: gbaraldi Date: Thu, 22 May 2025 11:31:56 -0300 Subject: [PATCH 2/2] Fix typo --- test/new.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/new.jl b/test/new.jl index 6036c7f5ba..31305bed0f 100644 --- a/test/new.jl +++ b/test/new.jl @@ -2154,7 +2154,7 @@ end end @testset "--threads=other_nthreads_default,other_nthreads_interactive" begin withenv( - / "EXPECTED_NUM_THREADS_DEFAULT" => "$other_nthreads_default", + "EXPECTED_NUM_THREADS_DEFAULT" => "$other_nthreads_default", "EXPECTED_NUM_THREADS_INTERACTIVE" => "$other_nthreads_interactive", "JULIA_NUM_THREADS" => nothing, ) do