From f865e3b9a0f053c09669ca70c77d88456ed2b8ba Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Tue, 15 May 2012 13:36:00 -0700 Subject: Test adjustments. --- test/files/run/xml-loop-bug.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/files/run') diff --git a/test/files/run/xml-loop-bug.scala b/test/files/run/xml-loop-bug.scala index 378ae9bc2b..67637674b2 100644 --- a/test/files/run/xml-loop-bug.scala +++ b/test/files/run/xml-loop-bug.scala @@ -1,6 +1,8 @@ object Test { def main(args: Array[String]): Unit = { - scala.tools.nsc.io.NullPrintStream.setOutAndErr() + val sink = new java.io.PrintStream(new java.io.ByteArrayOutputStream()) + Console setOut sink + Console setErr sink scala.xml.parsing.ConstructingParser.fromSource(scala.io.Source.fromString(" "), true).document.docElem } } -- cgit v1.2.3