diff options
Diffstat (limited to 'src/partest')
-rw-r--r-- | src/partest/scala/tools/partest/nest/DirectRunner.scala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/partest/scala/tools/partest/nest/DirectRunner.scala b/src/partest/scala/tools/partest/nest/DirectRunner.scala index 756feb6cac..b4866c769e 100644 --- a/src/partest/scala/tools/partest/nest/DirectRunner.scala +++ b/src/partest/scala/tools/partest/nest/DirectRunner.scala @@ -12,6 +12,7 @@ import java.io.{File, PrintStream, FileOutputStream, BufferedReader, import java.util.StringTokenizer import scala.actors.Actor._ +import scala.actors.Scheduler trait DirectRunner { @@ -38,6 +39,10 @@ trait DirectRunner { val len = kindFiles.length val (testsEach, lastFrag) = (len/numActors, len%numActors) val last = numActors-1 + + // make sure Actor Scheduler is up and running + Scheduler.restart() + val workers = for (i <- List.range(0, numActors)) yield { val toTest = kindFiles.slice(i*testsEach, (i+1)*testsEach) val worker = new Worker(fileManager) |