Files
cell/tests/actor_memory_abuse.ce

13 lines
428 B
Plaintext

// Test: actor that allocates too much memory is killed
// Parent starts a child that allocates arrays in a loop.
// The child should be killed when it exceeds the heap memory limit.
$start(function(event) {
if (event.type == 'greet') {
// child started, wait for it to die from memory abuse
}
if (event.type == 'disrupt') {
print("PASS: memory abusing actor killed")
$stop()
}
}, 'tests/hang_actor_memory')