From 359b0bce8ec9bced0ca6fbb3865e9b3a6bcb30b4 Mon Sep 17 00:00:00 2001 From: Seth Tisue Date: Wed, 26 Oct 2016 10:52:26 -0700 Subject: [backport] SI-6412 remove flaky test (cherry-picking commit a03e7a0) I have repeatedly seen this fail CI runs, including recently as the comment in the test itself says: "I'm not sure this is a great way to test for memory leaks, since we're also testing how good the JVM's GC is, and this is not easily reproduced between machines/over time" --- test/files/run/reflection-mem-typecheck.scala | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 test/files/run/reflection-mem-typecheck.scala (limited to 'test/files') diff --git a/test/files/run/reflection-mem-typecheck.scala b/test/files/run/reflection-mem-typecheck.scala deleted file mode 100644 index f1fe983ede..0000000000 --- a/test/files/run/reflection-mem-typecheck.scala +++ /dev/null @@ -1,26 +0,0 @@ -import scala.tools.partest.MemoryTest - -trait A { type T <: A } -trait B { type T <: B } - -object Test extends MemoryTest { - lazy val tb = { - import scala.reflect.runtime.universe._ - import scala.reflect.runtime.{currentMirror => cm} - import scala.tools.reflect.ToolBox - cm.mkToolBox() - } - - override def maxDelta = 12 - override def calcsPerIter = 8 - override def calc() { - var snippet = """ - trait A { type T <: A } - trait B { type T <: B } - def foo[T](x: List[T]) = x - foo(List(new A {}, new B {})) - """.trim - snippet = snippet + "\n" + (List.fill(50)(snippet.split("\n").last) mkString "\n") - tb.typecheck(tb.parse(snippet)) - } -} \ No newline at end of file -- cgit v1.2.3