diff options
author | Philipp Haller <hallerp@gmail.com> | 2009-01-30 17:04:06 +0000 |
---|---|---|
committer | Philipp Haller <hallerp@gmail.com> | 2009-01-30 17:04:06 +0000 |
commit | 35607daf4055e42592994cf9d895b5e03ed73ed1 (patch) | |
tree | 9d7790278652061a96f4bab4d34dc014770fb2e2 | |
parent | b5e97c54fd79fcc160c521b34d08194000acd12c (diff) | |
download | scala-35607daf4055e42592994cf9d895b5e03ed73ed1.tar.gz scala-35607daf4055e42592994cf9d895b5e03ed73ed1.tar.bz2 scala-35607daf4055e42592994cf9d895b5e03ed73ed1.zip |
Added test for #1652.
-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) +} |