diff options
author | Philipp Haller <hallerp@gmail.com> | 2010-02-02 12:40:38 +0000 |
---|---|---|
committer | Philipp Haller <hallerp@gmail.com> | 2010-02-02 12:40:38 +0000 |
commit | 5df06dc8dafef7f76b6783e7a473f30678c55d58 (patch) | |
tree | 44236316be9220ac2ab04e958fca9a76654c9082 /test/files | |
parent | 2b20a98b3fa7cbd952554c7d460bdaab9e25a933 (diff) | |
download | scala-5df06dc8dafef7f76b6783e7a473f30678c55d58.tar.gz scala-5df06dc8dafef7f76b6783e7a473f30678c55d58.tar.bz2 scala-5df06dc8dafef7f76b6783e7a473f30678c55d58.zip |
Closes #3009.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/jvm/future-alarm.check | 20 | ||||
-rw-r--r-- | test/files/jvm/future-alarm.scala | 16 |
2 files changed, 36 insertions, 0 deletions
diff --git a/test/files/jvm/future-alarm.check b/test/files/jvm/future-alarm.check new file mode 100644 index 0000000000..01a87d1c4c --- /dev/null +++ b/test/files/jvm/future-alarm.check @@ -0,0 +1,20 @@ +OK +OK +OK +OK +OK +OK +OK +OK +OK +OK +OK +OK +OK +OK +OK +OK +OK +OK +OK +OK diff --git a/test/files/jvm/future-alarm.scala b/test/files/jvm/future-alarm.scala new file mode 100644 index 0000000000..0dda492741 --- /dev/null +++ b/test/files/jvm/future-alarm.scala @@ -0,0 +1,16 @@ +import scala.actors.Futures + +object Test { + def main(args: Array[String]) { + for (i <- 1 to 100000) { + Futures.alarm(0) + if (i % 10000 == 0) + println("OK") + } + for (_ <- 1 to 10) { + val ft = Futures.alarm(100) + ft() + println("OK") + } + } +} |