aboutsummaryrefslogtreecommitdiff
path: root/test/dotty/partest/DPConsoleRunner.scala
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2016-02-11 13:28:32 +0100
committerGuillaume Martres <smarter@ubuntu.com>2016-02-11 13:39:56 +0100
commitd57fd8bc9fc9eadf620b29a89a69b7d974a7ec65 (patch)
tree0c584961a3fb56a19a1a6bf09949a54c4c6ff4f7 /test/dotty/partest/DPConsoleRunner.scala
parent13b61653439700ca6607074bcded4d714131bdc2 (diff)
downloaddotty-d57fd8bc9fc9eadf620b29a89a69b7d974a7ec65.tar.gz
dotty-d57fd8bc9fc9eadf620b29a89a69b7d974a7ec65.tar.bz2
dotty-d57fd8bc9fc9eadf620b29a89a69b7d974a7ec65.zip
partest: run tests with -Xms64M -Xmx1024M instead of JVM defaults
This is the same settings that scalac uses, this should help use avoid using too much memory (the default on 64 bits Linux seems to be -Xms248M -Xmx3938M).
Diffstat (limited to 'test/dotty/partest/DPConsoleRunner.scala')
-rw-r--r--test/dotty/partest/DPConsoleRunner.scala5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/dotty/partest/DPConsoleRunner.scala b/test/dotty/partest/DPConsoleRunner.scala
index fa6256398..baa62579c 100644
--- a/test/dotty/partest/DPConsoleRunner.scala
+++ b/test/dotty/partest/DPConsoleRunner.scala
@@ -65,8 +65,9 @@ class DPSuiteRunner(testSourcePath: String, // relative path, like "files", or "
consoleArgs: String,
javaCmdPath: String = PartestDefaults.javaCmd,
javacCmdPath: String = PartestDefaults.javacCmd,
- scalacExtraArgs: Seq[String] = Seq.empty)
-extends SuiteRunner(testSourcePath, fileManager, updateCheck, failed, javaCmdPath, javacCmdPath, scalacExtraArgs) {
+ scalacExtraArgs: Seq[String] = Seq.empty,
+ javaOpts: String = DPConfig.runJVMOpts)
+extends SuiteRunner(testSourcePath, fileManager, updateCheck, failed, javaCmdPath, javacCmdPath, scalacExtraArgs, javaOpts) {
if (!DPConfig.runTestsInParallel)
sys.props("partest.threads") = "1"