diff options
author | Geoffrey Washburn <geoffrey.washburn@epfl.ch> | 2008-10-01 16:29:40 +0000 |
---|---|---|
committer | Geoffrey Washburn <geoffrey.washburn@epfl.ch> | 2008-10-01 16:29:40 +0000 |
commit | dbe66d06722cc31b7d898390315daf07daf05c54 (patch) | |
tree | 76eac8a3caf30defd58e4a24e0727c51c0b79bcd /test/files/jvm | |
parent | c46666b9f4ecf77373e9fde9381aeaeba59c044f (diff) | |
download | scala-dbe66d06722cc31b7d898390315daf07daf05c54.tar.gz scala-dbe66d06722cc31b7d898390315daf07daf05c54.tar.bz2 scala-dbe66d06722cc31b7d898390315daf07daf05c54.zip |
Moved brittle timeout test to pending.
Diffstat (limited to 'test/files/jvm')
-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) - } - } - } -} |