diff options
author | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2012-09-25 05:52:35 -0700 |
---|---|---|
committer | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2012-09-25 05:52:35 -0700 |
commit | ebeb3684b2e80f826f55276c760c192510b3b84d (patch) | |
tree | 23f2e7113b8de7508eadb86884aeb4e228cb507a /test | |
parent | db8dea0055739ec39c8765565c5f479ab360acf9 (diff) | |
parent | bb48b7a4528335770c7c72341f58f326c11f6284 (diff) | |
download | scala-ebeb3684b2e80f826f55276c760c192510b3b84d.tar.gz scala-ebeb3684b2e80f826f55276c760c192510b3b84d.tar.bz2 scala-ebeb3684b2e80f826f55276c760c192510b3b84d.zip |
Merge pull request #1392 from gkossakowski/revert-leaks-fix
Revert "SI-6412 alleviates leaks in toolboxes"
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/reflection-mem-typecheck.scala | 26 | ||||
-rw-r--r-- | test/pending/run/reflection-mem-eval.scala | 26 |
2 files changed, 0 insertions, 52 deletions
diff --git a/test/files/run/reflection-mem-typecheck.scala b/test/files/run/reflection-mem-typecheck.scala deleted file mode 100644 index a312c2c893..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 = 10 - 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 diff --git a/test/pending/run/reflection-mem-eval.scala b/test/pending/run/reflection-mem-eval.scala deleted file mode 100644 index 9045c44cd6..0000000000 --- a/test/pending/run/reflection-mem-eval.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 = 10 - override def calcsPerIter = 3 - 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.eval(tb.parse(snippet)) - } -}
\ No newline at end of file |