summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-05-15 13:36:00 -0700
committerPaul Phillips <paulp@improving.org>2012-05-15 13:36:00 -0700
commitf865e3b9a0f053c09669ca70c77d88456ed2b8ba (patch)
treedf372da60b627aa06502de597d25c8fb2125dac7 /test
parent317a1056cd8062331964d1bc65f1bfd945538551 (diff)
downloadscala-f865e3b9a0f053c09669ca70c77d88456ed2b8ba.tar.gz
scala-f865e3b9a0f053c09669ca70c77d88456ed2b8ba.tar.bz2
scala-f865e3b9a0f053c09669ca70c77d88456ed2b8ba.zip
Test adjustments.
Diffstat (limited to 'test')
-rw-r--r--test/files/run/xml-loop-bug.scala4
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
}
}