From c7ee27227f9dbb70e430021199c1fbb9ff44819b Mon Sep 17 00:00:00 2001 From: Simon Ochsenreither Date: Sun, 23 Jun 2013 21:40:18 +0200 Subject: 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. --- test/files/run/stream_length.scala | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/files/run/stream_length.scala') diff --git a/test/files/run/stream_length.scala b/test/files/run/stream_length.scala index 2808fbc495..33929f4b57 100644 --- a/test/files/run/stream_length.scala +++ b/test/files/run/stream_length.scala @@ -10,6 +10,10 @@ object Test { } def main(args: Array[String]) { - println("Length: " + walk(3, "---").length) + if (scala.tools.partest.utils.Properties.isAvian) { + println("!!!TEST SKIPPED!!!") + println("See SI-7600 for further information.") + } else + println("Length: " + walk(3, "---").length) } } -- cgit v1.2.3