summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
authorSeth Tisue <seth@tisue.net>2016-10-26 10:52:26 -0700
committerAdriaan Moors <adriaan@lightbend.com>2017-01-09 17:19:22 -0800
commit359b0bce8ec9bced0ca6fbb3865e9b3a6bcb30b4 (patch)
tree2aaa812d2632f22b06e5d909abb9991d3837cb35 /test/files/run
parent8ad55f851585d69ad01d983411f5662e2c9a9fa1 (diff)
downloadscala-359b0bce8ec9bced0ca6fbb3865e9b3a6bcb30b4.tar.gz
scala-359b0bce8ec9bced0ca6fbb3865e9b3a6bcb30b4.tar.bz2
scala-359b0bce8ec9bced0ca6fbb3865e9b3a6bcb30b4.zip
[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"
Diffstat (limited to 'test/files/run')
-rw-r--r--test/files/run/reflection-mem-typecheck.scala26
1 files changed, 0 insertions, 26 deletions
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