From 48451f980e1a252a0470e72dfd944b1eee52891b Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Wed, 17 Nov 2010 20:21:15 +0000 Subject: Fixed the bug which was hanging partest. (apparently) the bug which has had me chasing concurrency ghosts throughout the haunted castle. No review. --- src/partest/scala/tools/partest/nest/DirectRunner.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/partest') diff --git a/src/partest/scala/tools/partest/nest/DirectRunner.scala b/src/partest/scala/tools/partest/nest/DirectRunner.scala index 7410e890a0..cca7804b9b 100644 --- a/src/partest/scala/tools/partest/nest/DirectRunner.scala +++ b/src/partest/scala/tools/partest/nest/DirectRunner.scala @@ -36,7 +36,9 @@ trait DirectRunner { } } - def runTestsForFiles(kindFiles: List[File], kind: String): scala.collection.immutable.Map[String, Int] = { + def runTestsForFiles(_kindFiles: List[File], kind: String): scala.collection.immutable.Map[String, Int] = { + /** NO DUPLICATES, or partest will blow the count and hang forever. **/ + val kindFiles = _kindFiles.distinct val len = kindFiles.length val (testsEach, lastFrag) = (len/numActors, len%numActors) val last = numActors-1 -- cgit v1.2.3