summaryrefslogtreecommitdiff
path: root/test/files/jvm
diff options
context:
space:
mode:
authorPhilipp Haller <hallerp@gmail.com>2009-01-30 17:04:06 +0000
committerPhilipp Haller <hallerp@gmail.com>2009-01-30 17:04:06 +0000
commit35607daf4055e42592994cf9d895b5e03ed73ed1 (patch)
tree9d7790278652061a96f4bab4d34dc014770fb2e2 /test/files/jvm
parentb5e97c54fd79fcc160c521b34d08194000acd12c (diff)
downloadscala-35607daf4055e42592994cf9d895b5e03ed73ed1.tar.gz
scala-35607daf4055e42592994cf9d895b5e03ed73ed1.tar.bz2
scala-35607daf4055e42592994cf9d895b5e03ed73ed1.zip
Added test for #1652.
Diffstat (limited to 'test/files/jvm')
-rw-r--r--test/files/jvm/t1652.check2
-rw-r--r--test/files/jvm/t1652.scala11
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)
+}