diff options
Diffstat (limited to 'tests/cancel.lua')
-rw-r--r-- | tests/cancel.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/cancel.lua b/tests/cancel.lua index 5862c85..80e6c6a 100644 --- a/tests/cancel.lua +++ b/tests/cancel.lua | |||
@@ -160,7 +160,7 @@ end | |||
160 | if not next(which_tests) or which_tests.linda then | 160 | if not next(which_tests) or which_tests.linda then |
161 | remaining_tests.linda = nil | 161 | remaining_tests.linda = nil |
162 | print "\n\n####################################################################\nbegin linda cancel test\n" | 162 | print "\n\n####################################################################\nbegin linda cancel test\n" |
163 | h = generator("*", laneBody)("receive", nil) -- start an infinite wait on the linda | 163 | h = generator("*", { name = 'auto' }, laneBody)("receive", nil) -- start an infinite wait on the linda |
164 | 164 | ||
165 | print "wait 1s" | 165 | print "wait 1s" |
166 | SLEEP(1) | 166 | SLEEP(1) |
@@ -181,7 +181,7 @@ end | |||
181 | if not next(which_tests) or which_tests.soft then | 181 | if not next(which_tests) or which_tests.soft then |
182 | remaining_tests.soft = nil | 182 | remaining_tests.soft = nil |
183 | print "\n\n####################################################################\nbegin soft cancel test\n" | 183 | print "\n\n####################################################################\nbegin soft cancel test\n" |
184 | h = generator("*", protectedBody)("receive") -- start an infinite wait on the linda | 184 | h = generator("*", { name = 'auto' }, protectedBody)("receive") -- start an infinite wait on the linda |
185 | 185 | ||
186 | print "wait 1s" | 186 | print "wait 1s" |
187 | SLEEP(1) | 187 | SLEEP(1) |
@@ -205,7 +205,7 @@ end | |||
205 | if not next(which_tests) or which_tests.hook then | 205 | if not next(which_tests) or which_tests.hook then |
206 | remaining_tests.hook = nil | 206 | remaining_tests.hook = nil |
207 | print "\n\n####################################################################\nbegin hook cancel test\n" | 207 | print "\n\n####################################################################\nbegin hook cancel test\n" |
208 | h = generator("*", protectedBody)("get", 300000) | 208 | h = generator("*", { name = 'auto' }, protectedBody)("get", 300000) |
209 | print "wait 2s" | 209 | print "wait 2s" |
210 | SLEEP(2) | 210 | SLEEP(2) |
211 | 211 | ||
@@ -222,7 +222,7 @@ end | |||
222 | if not next(which_tests) or which_tests.hard then | 222 | if not next(which_tests) or which_tests.hard then |
223 | remaining_tests.hard = nil | 223 | remaining_tests.hard = nil |
224 | print "\n\n####################################################################\nbegin hard cancel test\n" | 224 | print "\n\n####################################################################\nbegin hard cancel test\n" |
225 | h = lanes.gen("*", protectedBody)("receive", nil) -- infinite timeout | 225 | h = lanes.gen("*", { name = 'auto' }, protectedBody)("receive", nil) -- infinite timeout |
226 | 226 | ||
227 | -- wait 2s before cancelling the lane | 227 | -- wait 2s before cancelling the lane |
228 | print "wait 2s" | 228 | print "wait 2s" |
@@ -241,7 +241,7 @@ end | |||
241 | if not next(which_tests) or which_tests.hard_unprotected then | 241 | if not next(which_tests) or which_tests.hard_unprotected then |
242 | remaining_tests.hard_unprotected = nil | 242 | remaining_tests.hard_unprotected = nil |
243 | print "\n\n####################################################################\nbegin hard cancel test with unprotected lane body\n" | 243 | print "\n\n####################################################################\nbegin hard cancel test with unprotected lane body\n" |
244 | h = generator("*", laneBody)("receive", nil) | 244 | h = generator("*", { name = 'auto' }, laneBody)("receive", nil) |
245 | 245 | ||
246 | -- wait 2s before cancelling the lane | 246 | -- wait 2s before cancelling the lane |
247 | print "wait 2s" | 247 | print "wait 2s" |