diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/files/jvm/t1652.check | 2 | ||||
-rw-r--r-- | test/files/jvm/t1652.scala | 11 |
2 files changed, 13 insertions, 0 deletions
diff --git a/test/files/jvm/t1652.check b/test/files/jvm/t1652.check new file mode 100644 index 0000000000..dfa480ce6e --- /dev/null +++ b/test/files/jvm/t1652.check @@ -0,0 +1,2 @@ +OK1 +OK2 diff --git a/test/files/jvm/t1652.scala b/test/files/jvm/t1652.scala new file mode 100644 index 0000000000..725a9f93db --- /dev/null +++ b/test/files/jvm/t1652.scala @@ -0,0 +1,11 @@ +import scala.actors.Actor +object Test extends Application { + Actor.actor { + Actor.reactWithin(1) { case x => println("OK1") } + } + Thread.sleep(500) // Wait for scheduler to poll ActorGC + Actor.actor { + Actor.reactWithin(1) { case x => println("OK2") } + } + Thread.sleep(500) +} |