Skip to content

Commit 7e6989b

Browse files
committed
gtdot clean up
1 parent ca06740 commit 7e6989b

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

test/gtdot.ijs

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ NB. no more thread can be created
3535
'limit error' -: 0&T. etx ''
3636

3737
f=: 4 : 0
38-
echo^:(PRINTMSG+.GITHUBCI*.IFWIN) 'test ',(":1),' f ',(":y),' start: ',":6!:0''
3938
pyx=. g t. (<'worker';x) "0 i.y
4039
while. do.
4140
r=. 4 T. pyx NB. echo r for debug
@@ -44,13 +43,10 @@ while. do.
4443
end.
4544
if. -. r e. _1000 _1001 do. pyxA =: pyx [ rA =: r end.
4645
assert. r e. _1000 _1001 NB. _1001 if run on the main thread
47-
echo^:(PRINTMSG+.GITHUBCI*.IFWIN) 'test ',(":1),' f ',(":y),' finish: ',":6!:0''
4846
]&> pyx
4947
)
5048

5149
f1=: 4 : 0
52-
if. 0 [ x*.GITHUBCI*.IFWIN do. y=. 10 <. y end. NB. temp workaround
53-
echo^:(PRINTMSG+.GITHUBCI*.IFWIN) 'test ',(":1),' f1 ',(":y),' start: ',":6!:0''
5450
pyx=. x&g1@y t. (<'worker';x) "0 i.y
5551
while. do.
5652
r=. 4 T. pyx NB. echo r for debug
@@ -59,13 +55,10 @@ while. do.
5955
end.
6056
if. -. r e. _1000 _1001 do. pyxA =: pyx [ rA =: r end.
6157
assert. r e. _1000 _1001 NB. _1001 if run on the main thread
62-
echo^:(PRINTMSG+.GITHUBCI*.IFWIN) 'test ',(":1),' f1 ',(":y),' finish: ',":6!:0''
6358
]&> pyx
6459
)
6560

6661
f2=: 4 : 0
67-
if. 0 [ x*.GITHUBCI*.IFWIN do. y=. 10 <. y end. NB. temp workaround
68-
echo^:(PRINTMSG+.GITHUBCI*.IFWIN) 'test ',(":1),' f2 ',(":y),' start: ',":6!:0''
6962
pyx=. x&g1@y t. (<'worker';x) "0 i.y
7063
pyx0=. g t. (<'worker';x) "0 i.y
7164
while. do.
@@ -75,20 +68,17 @@ while. do.
7568
end.
7669
if. -. r e. _1000 _1001 do. pyxA =: pyx [ rA =: r end.
7770
assert. r e. _1000 _1001 NB. _1001 if run on the main thread
78-
echo^:(PRINTMSG+.GITHUBCI*.IFWIN) 'test ',(":1),' f2 ',(":y),' finish: ',":6!:0''
7971
(,]&> pyx), ]&>pyx0
8072
)
8173

8274
g=: 3 : 0
83-
9!:1[(7^5)+3 T.'' NB. random per thread
84-
sleep[0.001*?0 NB. arbitrary delay
75+
sleep[0.001 NB. arbitrary delay
8576
1
8677
)
8778

8879
g1=: 4 : 0
89-
9!:1[(7^5)-3 T.'' NB. random per thread
9080
for_i. i.y do.
91-
sleep[0.001*?0 NB. arbitrary delay
81+
sleep[0.001 NB. arbitrary delay
9282
pyx=. g t. (<'worker';x) "0 i.y
9383
end.
9484
]&> pyx
@@ -263,7 +253,7 @@ amv =. 16 T. 0 NB. AMV with value 0
263253
'limit error' -: 2 T. etx 8
264254
'limit error' -: ". etx '] t. 8'
265255

266-
4!:55 ;:'allowlongjobs amv delth N N1 N2 f f1 f2 g g1 wthr sleep'
256+
4!:55 ;:'allowlongjobs amv delth N N1 N2 f f1 f2 g g1 sleep wthr'
267257

268258
epilog''
269259

0 commit comments

Comments
 (0)