diff options
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/jvm/timeout.check | 1 | ||||
-rw-r--r-- | test/files/jvm/timeout.scala | 33 |
2 files changed, 0 insertions, 34 deletions
diff --git a/test/files/jvm/timeout.check b/test/files/jvm/timeout.check deleted file mode 100644 index d86bac9de5..0000000000 --- a/test/files/jvm/timeout.check +++ /dev/null @@ -1 +0,0 @@ -OK diff --git a/test/files/jvm/timeout.scala b/test/files/jvm/timeout.scala deleted file mode 100644 index 12f1bd7bad..0000000000 --- a/test/files/jvm/timeout.scala +++ /dev/null @@ -1,33 +0,0 @@ - -import scala.actors.Actor._ -import scala.actors.TIMEOUT - -object Test extends Application { - case class Timing(time: Long) - - actor { - val a = actor { - react { - case 'doTiming => - val s = sender - reactWithin(500) { - case TIMEOUT => - s ! Timing(System.currentTimeMillis) - } - } - } - - val start = System.currentTimeMillis - (a !? 'doTiming) match { - case Timing(end) => - val delay = end - start - - if (delay > 100 && delay < 900) - println("OK") - else { - println("EXPECTED: 100 < x < 900") - println("ACTUAL: "+delay) - } - } - } -} |