summaryrefslogtreecommitdiff
path: root/src/partest
diff options
context:
space:
mode:
authorPhilipp Haller <hallerp@gmail.com>2010-04-12 20:41:46 +0000
committerPhilipp Haller <hallerp@gmail.com>2010-04-12 20:41:46 +0000
commit0721367ab2eab55008422a91ff22d41b02d840dc (patch)
treef05b1b894096cc0e5ccca15a2508b9626b8f9f1f /src/partest
parentc1f1a2cfdf0b0c99c019c855a7e9c47e0c850711 (diff)
downloadscala-0721367ab2eab55008422a91ff22d41b02d840dc.tar.gz
scala-0721367ab2eab55008422a91ff22d41b02d840dc.tar.bz2
scala-0721367ab2eab55008422a91ff22d41b02d840dc.zip
Another attempt at avoiding partest hang ups wh...
Another attempt at avoiding partest hang ups when the compiler crashes. Review by extempore.
Diffstat (limited to 'src/partest')
-rw-r--r--src/partest/scala/tools/partest/Compilable.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/partest/scala/tools/partest/Compilable.scala b/src/partest/scala/tools/partest/Compilable.scala
index d7365c1620..6703d8a803 100644
--- a/src/partest/scala/tools/partest/Compilable.scala
+++ b/src/partest/scala/tools/partest/Compilable.scala
@@ -82,8 +82,9 @@ trait PartestCompilation {
def partestCompile(files: List[String], printSummary: Boolean): Boolean = {
try { new Run compile files }
catch {
- case FatalError(msg) => creporter.error(null, "fatal error: " + msg)
+ case FatalError(msg) => creporter.error(null, "fatal error: " + msg)
case ae: AssertionError => creporter.error(null, ""+ae)
+ case te: TypeError => creporter.error(null, ""+te)
}
if (printSummary)