diff options
author | Paul Phillips <paulp@improving.org> | 2009-10-07 17:07:27 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-10-07 17:07:27 +0000 |
commit | 6b31849b85532946cb90b2552cb451b58dbd884d (patch) | |
tree | 6c343195529c27d43710ae14f77ffc079ccc3ebb /test/files/jvm | |
parent | 9f121f57e034a7feb07bad7f67403f3ac75b46d4 (diff) | |
download | scala-6b31849b85532946cb90b2552cb451b58dbd884d.tar.gz scala-6b31849b85532946cb90b2552cb451b58dbd884d.tar.bz2 scala-6b31849b85532946cb90b2552cb451b58dbd884d.zip |
Moved a pile of passing tests from pending to f...
Moved a pile of passing tests from pending to files, fixed some untesty
tests, and will now close the associated tickets.
Diffstat (limited to 'test/files/jvm')
-rw-r--r-- | test/files/jvm/t1801.check | 6 | ||||
-rw-r--r-- | test/files/jvm/t1801.scala | 31 |
2 files changed, 37 insertions, 0 deletions
diff --git a/test/files/jvm/t1801.check b/test/files/jvm/t1801.check new file mode 100644 index 0000000000..bf78a99db9 --- /dev/null +++ b/test/files/jvm/t1801.check @@ -0,0 +1,6 @@ +0 +100 +200 +300 +400 +done! diff --git a/test/files/jvm/t1801.scala b/test/files/jvm/t1801.scala new file mode 100644 index 0000000000..6ed7c56336 --- /dev/null +++ b/test/files/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 + } +} |