diff options
author | Philipp Haller <hallerp@gmail.com> | 2009-11-09 10:23:57 +0000 |
---|---|---|
committer | Philipp Haller <hallerp@gmail.com> | 2009-11-09 10:23:57 +0000 |
commit | 6167e273e008614c08b08af656eb5e5d7f6a2e58 (patch) | |
tree | 8ef071fac67013f1cb9aeb90314f53294bff50fe /test/files | |
parent | c490722ae1b7a9147bcdc884e362409b4017d19f (diff) | |
download | scala-6167e273e008614c08b08af656eb5e5d7f6a2e58.tar.gz scala-6167e273e008614c08b08af656eb5e5d7f6a2e58.tar.bz2 scala-6167e273e008614c08b08af656eb5e5d7f6a2e58.zip |
Moved (non-regression) actor-receive-sender tes...
Moved (non-regression) actor-receive-sender test to pending for bug
fixing.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/jvm/actor-receive-sender.check | 2 | ||||
-rw-r--r-- | test/files/jvm/actor-receive-sender.scala | 51 |
2 files changed, 0 insertions, 53 deletions
diff --git a/test/files/jvm/actor-receive-sender.check b/test/files/jvm/actor-receive-sender.check deleted file mode 100644 index 2c94e48371..0000000000 --- a/test/files/jvm/actor-receive-sender.check +++ /dev/null @@ -1,2 +0,0 @@ -OK -OK diff --git a/test/files/jvm/actor-receive-sender.scala b/test/files/jvm/actor-receive-sender.scala deleted file mode 100644 index ea7c40cced..0000000000 --- a/test/files/jvm/actor-receive-sender.scala +++ /dev/null @@ -1,51 +0,0 @@ -import scala.actors.{Actor, TIMEOUT, Exit} -import scala.actors.Actor._ - -object Test { - - val NUM = 2000 - - def main(args: Array[String]) { - var b: Actor = null - var c: Actor = null - - val a = actor { - for (_ <- 0 until NUM) - receive { - case 'hello if sender == b => // do nothing - } - b ! 'ok - for (_ <- 0 until NUM) - receiveWithin (1000) { - case 'bye if sender == b => // do nothing - case TIMEOUT => b ! 'fail - } - b ! 'ok - } - - b = actor { - self.trapExit = true - link(a) - - for (_ <- 0 until NUM) - a ! 'hello - - val proceed = receive { - case Exit(from, reason) => println("FAIL"); false - case 'ok => println("OK"); true - case other => println(other); false - } - - if (proceed) { - for (_ <- 0 until NUM) - a ! 'bye - receive { - case Exit(from, reason) => println("FAIL") - case 'ok => println("OK") - case other => println(other) - } - } - } - } - -} |