summaryrefslogtreecommitdiff
path: root/build.sbt
diff options
context:
space:
mode:
authorSeth Tisue <seth@tisue.net>2016-08-26 19:07:34 -0700
committerSeth Tisue <seth@tisue.net>2016-08-26 19:10:43 -0700
commit58d2279e8f3d13787927a462e162cf30c81e3ef9 (patch)
tree31ea92da01d3c0a619ba7ea109723b641d965b84 /build.sbt
parent6b82c72a0fac6e4284b270af0b17c6cacb48b291 (diff)
downloadscala-58d2279e8f3d13787927a462e162cf30c81e3ef9.tar.gz
scala-58d2279e8f3d13787927a462e162cf30c81e3ef9.tar.bz2
scala-58d2279e8f3d13787927a462e162cf30c81e3ef9.zip
increase stack size when running JUnit tests
scala.collection.immutable.PagedSeqTest.test_SI6615 was failing intermittently during PR validation I verified that this change fixes the problem by: - changing the PageSize constant in PagedSeq (as shown by Jason Zaugg) until the test failed every time locally - making this build change and seeing the test pass again 5M is just an arbitrary number, considerably over the default (which varies according to platform & CPU). 5M is a lot of stack, but not so vastly much that it appreciably eats into the heap
Diffstat (limited to 'build.sbt')
-rw-r--r--build.sbt1
1 files changed, 1 insertions, 0 deletions
diff --git a/build.sbt b/build.sbt
index 3ceff35b45..76ffe52728 100644
--- a/build.sbt
+++ b/build.sbt
@@ -556,6 +556,7 @@ lazy val junit = project.in(file("test") / "junit")
.settings(disablePublishing: _*)
.settings(
fork in Test := true,
+ javaOptions in Test += "-Xss5M",
libraryDependencies ++= Seq(junitDep, junitInterfaceDep, jolDep),
testOptions += Tests.Argument(TestFrameworks.JUnit, "-a", "-v"),
testFrameworks -= new TestFramework("org.scalacheck.ScalaCheckFramework"),