tests: Oops, forgot to add <exploder> to test-actors.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Mon, 2 Jan 2017 18:21:23 +0000 (12:21 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Mon, 2 Jan 2017 18:21:23 +0000 (12:21 -0600)
* tests/test-actors.scm: Add <exploder>.

tests/test-actors.scm

index aad93b5a03e23dc9e3ddef7568b0626416042b9f..3efa837d2b2fb5d725b0e602b74bcb59a92bdec3 100644 (file)
@@ -167,6 +167,12 @@ customer> Whaaaaat?  I can't believe I got voice mail!\n"
 ;; The exploder self-destructs, even though run-hive has clean-up
 ;; disabled, because it cleans up on self-destruct.
 
+(define-simple-actor <exploder>
+  (explode (lambda (exploder message)
+             (speak "POOF\n")
+             (self-destruct exploder)))
+  (*clean-up* (lambda _ (speak "Cleaning up post-explosion\n"))))
+
 (with-fresh-speaker
  (let ((hive (make-hive)))
    (define exploder (hive-create-actor hive <exploder>))