Skip to content

Commit 69e016d

Browse files
committed
switch tests again to make nightly happy
1 parent 6f4048b commit 69e016d

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

test/runtests.jl

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
using Test, StableTasks
22
using StableTasks: @spawn, @spawnat, @fetch, @fetchfrom
33

4-
if isdefinded(Threads, :maxthreadid)
5-
maxthreadid() = Threads.maxthreadid()
6-
else
7-
maxthreadid() = Threads.nthreads()
8-
end
9-
104
@testset "Type stability" begin
5+
t = @eval Threads.@spawn inv([1 2 ; 3 4])
6+
fetch(t)
7+
118
@test 2 == @inferred fetch(@spawn 1 + 1)
129
t = @eval @spawn inv([1 2 ; 3 4])
1310
@test inv([1 2 ; 3 4]) == @inferred fetch(t)
@@ -22,8 +19,8 @@ end
2219
@test inv([1 2 ; 3 4]) == @inferred fetch(t)
2320

2421
@test 2 == @inferred fetch(@spawnat 1 1 + 1)
25-
t = @eval @spawnat maxthreadid() inv([1 2 ; 3 4])
26-
@test inv([1 2 ; 3 4]) == @inferred fetch(t)
22+
t = @eval @spawnat 1 1 + 1
23+
@test 2 == @inferred fetch(t)
2724
end
2825

2926
@testset "API funcs" begin

0 commit comments

Comments
 (0)