Added property to configure the number of actors used

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@13952 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
phaller 2008-02-12 12:58:25 +00:00
parent 4b9a527551
commit 4ca457b21a
1 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,8 @@ object NestRunner {
private val version = System.getProperty("java.version", "")
private val isJava5 = version matches "1.[5|6|7].*"
private val numActors = Integer.parseInt(System.getProperty("scalatest.actors", "8"))
private var posCheck = false
private var negCheck = false
private var jvmCheck = false
@ -140,7 +142,6 @@ object NestRunner {
if (!kindFiles.isEmpty) {
NestUI.outline("\n"+msg+"\n")
val numActors = 4
val len = kindFiles.length
val (testsEach, lastFrag) = (len/numActors, len%numActors)
val last = numActors-1