diff options
Diffstat (limited to 'test/files/jvm/daemon-actor-termination.scala')
-rw-r--r-- | test/files/jvm/daemon-actor-termination.scala | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/test/files/jvm/daemon-actor-termination.scala b/test/files/jvm/daemon-actor-termination.scala index 322efbe212..c3dd58e253 100644 --- a/test/files/jvm/daemon-actor-termination.scala +++ b/test/files/jvm/daemon-actor-termination.scala @@ -1,8 +1,16 @@ -import scala.actors.DaemonActor +import scala.actors.{Actor, DefaultExecutorScheduler} -/* Test that a DaemonActor that hasn't finished does not prevent termination */ +/* Test that a daemon Actor that hasn't finished does not prevent termination */ + +trait DaemonActor extends Actor { + override def scheduler = + Test.daemonSched +} object Test { + val daemonSched = + new DefaultExecutorScheduler(true) + class MyDaemon extends DaemonActor { def act() { println("I'm going to make you wait.") |