diff options
author | Antonio Cunei <antonio.cunei@epfl.ch> | 2009-12-18 11:54:07 +0000 |
---|---|---|
committer | Antonio Cunei <antonio.cunei@epfl.ch> | 2009-12-18 11:54:07 +0000 |
commit | 74f5d6fa9023030d529f3048dc659f4096370d56 (patch) | |
tree | 99631516cbd5b8a0fa385254f28be9d3f7ca2796 /test/pending/jvm/t1801.scala | |
parent | bbc126660fd65c0aacee03b77f04de91df6959c7 (diff) | |
download | scala-74f5d6fa9023030d529f3048dc659f4096370d56.tar.gz scala-74f5d6fa9023030d529f3048dc659f4096370d56.tar.bz2 scala-74f5d6fa9023030d529f3048dc659f4096370d56.zip |
Disabling test for #1801 yet again, still faili...
Disabling test for #1801 yet again, still failing on some systems. No
review.
Diffstat (limited to 'test/pending/jvm/t1801.scala')
-rw-r--r-- | test/pending/jvm/t1801.scala | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/pending/jvm/t1801.scala b/test/pending/jvm/t1801.scala new file mode 100644 index 0000000000..6ed7c56336 --- /dev/null +++ b/test/pending/jvm/t1801.scala @@ -0,0 +1,31 @@ +import scala.actors.Actor._ + +object Test { + val rt = Runtime.getRuntime() + val sender = actor { + var cnt = 0 + while(cnt < 500) { + if ((cnt % 100) == 0) println(cnt) + receiver ! new Array[Int] (148576) + cnt += 1 + //println ("Used Mem: " + (((rt.totalMemory() - rt.freeMemory()) / 1048576.) formatted "%.2f") + " Mb") + } + receiver ! 'exit + } + + val receiver = actor { + loop { + react { + case x: Array[Int] => ()//println ("received " + x.length) + case 'exit => { + println("done!") + exit() + } + } + } + } + + def main (args: Array[String]) { + sender + } +} |