diff options
Diffstat (limited to 'test/files/jvm/daemon-actor-termination.scala')
-rw-r--r-- | test/files/jvm/daemon-actor-termination.scala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/jvm/daemon-actor-termination.scala b/test/files/jvm/daemon-actor-termination.scala index 8e64749b1c..6ddfc3139d 100644 --- a/test/files/jvm/daemon-actor-termination.scala +++ b/test/files/jvm/daemon-actor-termination.scala @@ -5,6 +5,7 @@ object Test { class MyDaemon extends DaemonActor { def act() { + try { react { case 'hello => println("MSG1") @@ -14,6 +15,10 @@ object Test { println("done") } } + } catch { + case e: Throwable if !e.isInstanceOf[scala.util.control.ControlThrowable] => + e.printStackTrace() + } } } @@ -21,8 +26,13 @@ object Test { val daemon = new MyDaemon daemon.start() Actor.actor { + try { daemon !? 'hello println("MSG2") + } catch { + case e: Throwable if !e.isInstanceOf[scala.util.control.ControlThrowable] => + e.printStackTrace() + } } } } |