Skip to content

Commit

Permalink
[DO NOT MERGE] Disable 'overscheduling' in test/cmdlineargs.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrueg committed Feb 27, 2021
1 parent 630e1a1 commit c08a9a0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/cmdlineargs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,11 @@ let exename = `$(Base.julia_cmd()) --startup-file=no --color=no`
# We want to test oversubscription, but on manycore machines, this can
# actually exhaust limited PID spaces
cpu_threads = max(2*cpu_threads, min(50, 10*cpu_threads))
@test read(`$exename -t $cpu_threads -e $code`, String) == string(cpu_threads)
withenv("JULIA_NUM_THREADS" => string(cpu_threads)) do
@test read(`$exename -e $code`, String) == string(cpu_threads)
if Sys.WORD_SIZE > 32
@test read(`$exename -t $cpu_threads -e $code`, String) == string(cpu_threads)
withenv("JULIA_NUM_THREADS" => string(cpu_threads)) do
@test read(`$exename -e $code`, String) == string(cpu_threads)
end
end
@test !success(`$exename -t 0`)
@test !success(`$exename -t -1`)
Expand Down

0 comments on commit c08a9a0

Please sign in to comment.