diff options
author | Simon Ochsenreither <simon@ochsenreither.de> | 2013-06-23 21:40:18 +0200 |
---|---|---|
committer | Simon Ochsenreither <simon@ochsenreither.de> | 2013-06-23 21:40:18 +0200 |
commit | c7ee27227f9dbb70e430021199c1fbb9ff44819b (patch) | |
tree | 094be46d5a8d17f3f2c94deec7d725b7f20e9445 /test/files/run/t4294.scala | |
parent | b6bc53479984f9fc0528a8ce3f6f0b582cb4147f (diff) | |
download | scala-c7ee27227f9dbb70e430021199c1fbb9ff44819b.tar.gz scala-c7ee27227f9dbb70e430021199c1fbb9ff44819b.tar.bz2 scala-c7ee27227f9dbb70e430021199c1fbb9ff44819b.zip |
SI-7600 [Avian] Skip tests r/stream_length and r/t4294
The issue is that Avian's GC is currently not precise enough to
determine the exact lifetime of each local/stack reference, and
therefore considers the this reference to be reachable in situations
where it could have been collected.
This can cause issues (as seen in run/stream_length and run/t4294:
`java.lang.OutOfMemoryError`) if code relies on the garbage collection
of these values to keep memory consumption constant.
This commit simply skips these two tests on Avian until the GC
implementation is fixed.
Diffstat (limited to 'test/files/run/t4294.scala')
-rw-r--r-- | test/files/run/t4294.scala | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/files/run/t4294.scala b/test/files/run/t4294.scala index fafaf1d8ef..e15c716047 100644 --- a/test/files/run/t4294.scala +++ b/test/files/run/t4294.scala @@ -1,7 +1,12 @@ object Test { def main(args: Array[String]) { + // Skip test on Avian, see SI-7600 for further information + if (!scala.tools.partest.utils.Properties.isAvian) + run() + } + + def run(): Unit = { (Stream.from(1).collect{case x if x > 5000000 => x}: Stream[Int]) - assert((Stream from 1 take 10 collect { case x if x <= 3 => x*x }).sum == 14) } } |