aboutsummaryrefslogtreecommitdiff
path: root/compiler/test/dotty/tools/dotc/transform
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2017-03-22 12:47:27 +0100
committerFelix Mulder <felix.mulder@gmail.com>2017-03-29 10:33:26 +0200
commit4e8eb320a882124630fb50d53d3d8c3721d9bd4e (patch)
tree6df525e5b7125bfc42f91a6b71abac6d108c1cba /compiler/test/dotty/tools/dotc/transform
parenta172e45ea3392f6fa526f64cb0e2947755f9a0c2 (diff)
downloaddotty-4e8eb320a882124630fb50d53d3d8c3721d9bd4e.tar.gz
dotty-4e8eb320a882124630fb50d53d3d8c3721d9bd4e.tar.bz2
dotty-4e8eb320a882124630fb50d53d3d8c3721d9bd4e.zip
Consolidate test reporters in `TestReporter` always dumping log file
Diffstat (limited to 'compiler/test/dotty/tools/dotc/transform')
-rw-r--r--compiler/test/dotty/tools/dotc/transform/PatmatExhaustivityTest.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/test/dotty/tools/dotc/transform/PatmatExhaustivityTest.scala b/compiler/test/dotty/tools/dotc/transform/PatmatExhaustivityTest.scala
index 96ab241fd..eff86e6e7 100644
--- a/compiler/test/dotty/tools/dotc/transform/PatmatExhaustivityTest.scala
+++ b/compiler/test/dotty/tools/dotc/transform/PatmatExhaustivityTest.scala
@@ -17,7 +17,7 @@ class PatmatExhaustivityTest {
private def compileFile(file: File) = {
val stringBuffer = new StringWriter()
- val reporter = new TestReporter(new PrintWriter(stringBuffer))
+ val reporter = TestReporter.simplifiedReporter(new PrintWriter(stringBuffer))
try {
Main.process((file.getPath::options).toArray, reporter, null)
@@ -40,7 +40,7 @@ class PatmatExhaustivityTest {
/** A single test with multiple files grouped in a folder */
private def compileDir(file: File) = {
val stringBuffer = new StringWriter()
- val reporter = new TestReporter(new PrintWriter(stringBuffer))
+ val reporter = TestReporter.simplifiedReporter(new PrintWriter(stringBuffer))
val files = Directory(file.getPath).list.toList
.filter(f => f.extension == "scala" || f.extension == "java" )