summaryrefslogtreecommitdiff
path: root/test/files/run/typetags_without_scala_reflect_typetag_manifest_interop.scala
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2012-11-25 13:31:52 -0800
committerAdriaan Moors <adriaan.moors@typesafe.com>2012-11-25 13:31:52 -0800
commitb8f06f33a420cf07f980cab61b2a11df6a0f5dca (patch)
tree939c690f926c712c68eff3f04c1f6c34bbea6bfc /test/files/run/typetags_without_scala_reflect_typetag_manifest_interop.scala
parent8630176e985c5a8266d3afe4c4e3fb50d449630d (diff)
parentfaa6cfcf404b4d172f20b3ed01ba3bd59427b700 (diff)
downloadscala-b8f06f33a420cf07f980cab61b2a11df6a0f5dca.tar.gz
scala-b8f06f33a420cf07f980cab61b2a11df6a0f5dca.tar.bz2
scala-b8f06f33a420cf07f980cab61b2a11df6a0f5dca.zip
Merge pull request #1663 from paulp/merge-2.10.wip-x
Merge 2.10.0-wip into 2.10.x.
Diffstat (limited to 'test/files/run/typetags_without_scala_reflect_typetag_manifest_interop.scala')
-rw-r--r--test/files/run/typetags_without_scala_reflect_typetag_manifest_interop.scala15
1 files changed, 8 insertions, 7 deletions
diff --git a/test/files/run/typetags_without_scala_reflect_typetag_manifest_interop.scala b/test/files/run/typetags_without_scala_reflect_typetag_manifest_interop.scala
index e984127583..6804baa0c3 100644
--- a/test/files/run/typetags_without_scala_reflect_typetag_manifest_interop.scala
+++ b/test/files/run/typetags_without_scala_reflect_typetag_manifest_interop.scala
@@ -1,6 +1,7 @@
import scala.tools.partest._
+import scala.tools.nsc.Settings
-object Test extends DirectTest {
+object Test extends StoreReporterDirectTest {
def code = ???
def library = """
@@ -29,18 +30,18 @@ object Test extends DirectTest {
"""
def compileApp() = {
val classpath = List(sys.props("partest.lib"), testOutput.path) mkString sys.props("path.separator")
+ val global = newCompiler("-cp", classpath, "-d", testOutput.path)
compileString(newCompiler("-cp", classpath, "-d", testOutput.path))(app)
+ //global.reporter.ERROR.foreach(println)
}
def show(): Unit = {
- val prevErr = System.err
- val baos = new java.io.ByteArrayOutputStream();
- System.setErr(new java.io.PrintStream(baos));
compileLibrary();
+ println(filteredInfos.mkString("\n"))
+ storeReporter.infos.clear()
compileApp();
// we should get bad symbolic reference errors, because we're trying to use an implicit that can't be unpickled
// but we don't know the number of these errors and their order, so I just ignore them all
- baos.toString.split("\n") filter (!_.startsWith("error: bad symbolic reference")) foreach println
- System.setErr(prevErr)
+ println(filteredInfos.filterNot (_.msg.contains("bad symbolic reference")).mkString("\n"))
}
-} \ No newline at end of file
+}