Make jl_*affinity
tests more portable
#55261
Merged
jl_*affinity
tests more portable
#55261