diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/xml-loop-bug.scala | 4 |
1 files changed, 3 insertions, 1 deletions
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("<!DOCTYPE xmeml SYSTEM> <xmeml> <sequence> </sequence> </xmeml> "), true).document.docElem } } |