diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2016-01-15 18:58:49 +0100 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2016-01-15 19:37:59 +0100 |
commit | 87f60583f549a343290145ff07b0a99ae433862d (patch) | |
tree | 31f654cf5a2edee216c4cf79b17a63ede193f2ea /test/dotty/partest | |
parent | da661c8a509efaa1c0ff926b0907c32cd37708a5 (diff) | |
download | dotty-87f60583f549a343290145ff07b0a99ae433862d.tar.gz dotty-87f60583f549a343290145ff07b0a99ae433862d.tar.bz2 dotty-87f60583f549a343290145ff07b0a99ae433862d.zip |
partest: Print stack traces of swallowed exceptions
Diffstat (limited to 'test/dotty/partest')
-rw-r--r-- | test/dotty/partest/DPDirectCompiler.scala | 5 |
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 |