diff options
author | Seth Tisue <seth@tisue.net> | 2016-10-26 10:52:26 -0700 |
---|---|---|
committer | Seth Tisue <seth@tisue.net> | 2016-10-26 10:54:31 -0700 |
commit | a03e7a0948e96f5135988bd3c318631ea3c4f4df (patch) | |
tree | a0fc29f0adf0f06a844f3e17805cdca16ca009ef /test | |
parent | 92db1dcc7f9bf7161bb986060d7151f86d5fca66 (diff) | |
download | scala-a03e7a0948e96f5135988bd3c318631ea3c4f4df.tar.gz scala-a03e7a0948e96f5135988bd3c318631ea3c4f4df.tar.bz2 scala-a03e7a0948e96f5135988bd3c318631ea3c4f4df.zip |
SI-6412 remove flaky test
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"
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/reflection-mem-typecheck.scala | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/test/files/run/reflection-mem-typecheck.scala b/test/files/run/reflection-mem-typecheck.scala deleted file mode 100644 index 93ec1c937a..0000000000 --- a/test/files/run/reflection-mem-typecheck.scala +++ /dev/null @@ -1,28 +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() - } - - // 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 - 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 |