aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2016-01-15 18:58:49 +0100
committerGuillaume Martres <smarter@ubuntu.com>2016-01-15 19:37:59 +0100
commit87f60583f549a343290145ff07b0a99ae433862d (patch)
tree31f654cf5a2edee216c4cf79b17a63ede193f2ea /test
parentda661c8a509efaa1c0ff926b0907c32cd37708a5 (diff)
downloaddotty-87f60583f549a343290145ff07b0a99ae433862d.tar.gz
dotty-87f60583f549a343290145ff07b0a99ae433862d.tar.bz2
dotty-87f60583f549a343290145ff07b0a99ae433862d.zip
partest: Print stack traces of swallowed exceptions
Diffstat (limited to 'test')
-rw-r--r--test/dotty/partest/DPDirectCompiler.scala5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/dotty/partest/DPDirectCompiler.scala b/test/dotty/partest/DPDirectCompiler.scala
index c05357edb..ca56ac3e9 100644
--- a/test/dotty/partest/DPDirectCompiler.scala
+++ b/test/dotty/partest/DPDirectCompiler.scala
@@ -34,7 +34,10 @@ class DPDirectCompiler(runner: DPTestRunner) extends nest.DirectCompiler(runner)
runner.genFail(s"compilation failed with ${reporter.errorCount} errors")
}
} catch {
- case t: Throwable => runner.genCrash(t)
+ case t: Throwable =>
+ t.printStackTrace
+ t.printStackTrace(clogWriter)
+ runner.genCrash(t)
} finally {
clogFWriter.close
clogWriter.close