File tree Expand file tree Collapse file tree 1 file changed +21
-21
lines changed Expand file tree Collapse file tree 1 file changed +21
-21
lines changed Original file line number Diff line number Diff line change @@ -70,29 +70,29 @@ using Random
7070 end
7171 end
7272
73- # addprocs_with_testenv(TopoTestManager(8); topology="custom")
73+ addprocs_with_testenv (TopoTestManager (8 ); topology= " custom" )
7474
75- # while true
76- # if any(x->get(map_pid_ident, x, 0)==0, workers())
77- # yield()
78- # else
79- # break
80- # end
81- # end
75+ while true
76+ if any (x-> get (map_pid_ident, x, 0 )== 0 , workers ())
77+ yield ()
78+ else
79+ break
80+ end
81+ end
8282
83- # let p1, p2
84- # for p1 in workers()
85- # for p2 in workers()
86- # i1 = map_pid_ident[p1]
87- # i2 = map_pid_ident[p2]
88- # if (iseven(i1) && iseven(i2)) || (isodd(i1) && isodd(i2))
89- # @test p2 == remotecall_fetch(p->remotecall_fetch(myid, p), p1, p2)
90- # else
91- # @test_throws RemoteException remotecall_fetch(p->remotecall_fetch(myid, p), p1, p2)
92- # end
93- # end
94- # end
95- # end
83+ let p1, p2
84+ for p1 in workers ()
85+ for p2 in workers ()
86+ i1 = map_pid_ident[p1]
87+ i2 = map_pid_ident[p2]
88+ if (iseven (i1) && iseven (i2)) || (isodd (i1) && isodd (i2))
89+ @test p2 == remotecall_fetch (p-> remotecall_fetch (myid, p), p1, p2)
90+ else
91+ @test_throws RemoteException remotecall_fetch (p-> remotecall_fetch (myid, p), p1, p2)
92+ end
93+ end
94+ end
95+ end
9696
9797 remove_workers_and_test ()
9898
You can’t perform that action at this time.
0 commit comments