summaryrefslogtreecommitdiff
path: root/test/files/presentation/memory-leaks
diff options
context:
space:
mode:
authorMirco Dotta <mirco.dotta@typesafe.com>2012-06-25 16:57:04 +0200
committerLukas Rytz <lukas.rytz@epfl.ch>2012-07-05 12:12:40 +0200
commit4b6ae392a7aaf147de3991998d52be5e7b7e665e (patch)
treef65bef9d84f473e1980d8833644c267c4317a0e0 /test/files/presentation/memory-leaks
parent33936243bdf597e438de8d10ae7b3ed30454be9f (diff)
downloadscala-4b6ae392a7aaf147de3991998d52be5e7b7e665e.tar.gz
scala-4b6ae392a7aaf147de3991998d52be5e7b7e665e.tar.bz2
scala-4b6ae392a7aaf147de3991998d52be5e7b7e665e.zip
Enhanced presentation compiler test infrastructure
* Removed unneeded .flags. * Renamed a few methods in `InteractiveTest`. * Force the presentation compiler to shut down after each test. * -sourcepath in the .flags file is now relative to the test's base directory. * Use `InteractiveReporter` in Presentation Compiler tests. By using the `InteractiveReporter`, compilation errors are collected in the compilation unit. This was necessary for testing SI-5975.
Diffstat (limited to 'test/files/presentation/memory-leaks')
-rw-r--r--test/files/presentation/memory-leaks/MemoryLeaksTest.scala5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/files/presentation/memory-leaks/MemoryLeaksTest.scala b/test/files/presentation/memory-leaks/MemoryLeaksTest.scala
index 857beac7df..a5533a623a 100644
--- a/test/files/presentation/memory-leaks/MemoryLeaksTest.scala
+++ b/test/files/presentation/memory-leaks/MemoryLeaksTest.scala
@@ -24,10 +24,7 @@ import scala.tools.nsc.io._
object Test extends InteractiveTest {
final val mega = 1024 * 1024
- override def main(args: Array[String]) {
- memoryConsumptionTest()
- compiler.askShutdown()
- }
+ override def execute(): Unit = memoryConsumptionTest()
def batchSource(name: String) =
new BatchSourceFile(AbstractFile.getFile(name))