summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSeth Tisue <seth@tisue.net>2016-11-23 09:48:16 -0800
committerGitHub <noreply@github.com>2016-11-23 09:48:16 -0800
commitd5f21af9f41d8f4bd22ee6126e1476b4a76c51c2 (patch)
treecb18821124fd6f1cd9107fdaa918012bd609b09f /test
parent750465684a2aa5b8d24876037d85c2d1e3e873bd (diff)
parenta03e7a0948e96f5135988bd3c318631ea3c4f4df (diff)
downloadscala-d5f21af9f41d8f4bd22ee6126e1476b4a76c51c2.tar.gz
scala-d5f21af9f41d8f4bd22ee6126e1476b4a76c51c2.tar.bz2
scala-d5f21af9f41d8f4bd22ee6126e1476b4a76c51c2.zip
Merge pull request #5480 from SethTisue/remove-reflection-mem-typecheck-test
SI-6412 remove flaky test
Diffstat (limited to 'test')
-rw-r--r--test/files/run/reflection-mem-typecheck.scala28
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