@@ -126,7 +126,7 @@ function testf(id)
126
126
@test_throws ErrorException put! (f, :OK ) # Cannot put! to a already set future
127
127
@test_throws MethodError take! (f) # take! is unsupported on a Future
128
128
129
- @test fetch (f) == :OK
129
+ @test fetch (f) === :OK
130
130
end
131
131
132
132
testf (id_me)
@@ -218,7 +218,7 @@ isready(f)
218
218
@test remotecall_fetch (k-> haskey (Distributed. PGRP. refs, k), wid1, fid) == true
219
219
put! (f, :OK )
220
220
@test remotecall_fetch (k-> haskey (Distributed. PGRP. refs, k), wid1, fid) == false
221
- @test fetch (f) == :OK
221
+ @test fetch (f) === :OK
222
222
223
223
# RemoteException should be thrown on a put! when another process has set the value
224
224
f = Future (wid1)
@@ -270,7 +270,7 @@ function test_remoteref_dgc(id)
270
270
271
271
# remote value should be deleted after finalizing the ref
272
272
@test remotecall_fetch (k-> (yield ();haskey (Distributed. PGRP. refs, k)), id, rrid) == true
273
- @test fetch (rr) == :OK
273
+ @test fetch (rr) === :OK
274
274
@test remotecall_fetch (k-> (yield ();haskey (Distributed. PGRP. refs, k)), id, rrid) == true
275
275
finalize (rr)
276
276
yield (); # flush gc msgs
@@ -349,7 +349,7 @@ function test_regular_io_ser(ref::Distributed.AbstractRemoteRef)
349
349
v = getfield (ref2, fld)
350
350
if isa (v, Number)
351
351
@test v === zero (typeof (v))
352
- elseif fld == :lock
352
+ elseif fld === :lock
353
353
@test v isa ReentrantLock
354
354
@test ! islocked (v)
355
355
elseif v != = nothing
@@ -528,7 +528,7 @@ let ex
528
528
bt = ex. captured. processed_bt:: Array{Any,1}
529
529
@test length (bt) > 1
530
530
frame, repeated = bt[1 ]:: Tuple{Base.StackTraces.StackFrame, Int}
531
- @test frame. func == :foo
531
+ @test frame. func === :foo
532
532
@test frame. linfo === nothing
533
533
@test repeated == 1
534
534
end
@@ -815,11 +815,11 @@ function f13168(n)
815
815
return val
816
816
end
817
817
let t = schedule (@task f13168 (100 ))
818
- @test t. state == :runnable
818
+ @test t. state === :runnable
819
819
@test t. queue != = nothing
820
820
@test_throws ErrorException schedule (t)
821
821
yield ()
822
- @test t. state == :done
822
+ @test t. state === :done
823
823
@test t. queue === nothing
824
824
@test_throws ErrorException schedule (t)
825
825
@test isa (fetch (t), Float64)
900
900
take! (rc)[1 ] != float (i) && error (" Failed" )
901
901
end
902
902
return :OK
903
- end , id_other, rc_unbuffered) == :OK
903
+ end , id_other, rc_unbuffered) === :OK
904
904
905
905
# github issue 33972
906
906
rc_unbuffered_other = RemoteChannel (()-> Channel {Int} (0 ), id_other)
997
997
@test_throws RemoteException remotecall_fetch (bad_thunk, 2 )
998
998
999
999
# Test that the stream is still usable
1000
- @test remotecall_fetch (()-> :test ,2 ) == :test
1000
+ @test remotecall_fetch (()-> :test ,2 ) === :test
1001
1001
ref = remotecall (bad_thunk, 2 )
1002
1002
@test_throws RemoteException fetch (ref)
1003
1003
end
@@ -1175,11 +1175,11 @@ function launch(manager::ErrorSimulator, params::Dict, launched::Array, c::Condi
1175
1175
dir = params[:dir ]
1176
1176
1177
1177
cmd = ` $(Base. julia_cmd (exename)) --startup-file=no`
1178
- if manager. mode == :timeout
1178
+ if manager. mode === :timeout
1179
1179
cmd = ` $cmd -e "sleep(10)"`
1180
- elseif manager. mode == :ntries
1180
+ elseif manager. mode === :ntries
1181
1181
cmd = ` $cmd -e "[println(x) for x in 1:1001]"`
1182
- elseif manager. mode == :exit
1182
+ elseif manager. mode === :exit
1183
1183
cmd = ` $cmd -e "exit(-1)"`
1184
1184
else
1185
1185
error (" Unknown mode" )
0 commit comments