Files
cell/tests/actor_slow_killed.ce

14 lines
455 B
Plaintext

// Test: actor with infinite loop is killed by slow timer
// Parent starts a child that hangs forever. The child should be
// killed by the slow timer, triggering a 'disrupt' event.
$start(function(event) {
if (event.type == 'greet') {
// child started, just wait for it to die
}
if (event.type == 'disrupt') {
// child was killed by the timer — success
print("PASS: slow actor killed by timer")
$stop()
}
}, 'tests/hang_actor')