diff options
author | Josh Suereth <Joshua.Suereth@gmail.com> | 2012-11-19 10:08:29 -0800 |
---|---|---|
committer | Josh Suereth <Joshua.Suereth@gmail.com> | 2012-11-19 10:08:29 -0800 |
commit | aef791268631ef38aaedd83af87191bdf73196f5 (patch) | |
tree | 851eebf3fd63af7fcac4fb79fbaea273f5388ecd /test/files/run/typetags_without_scala_reflect_typetag_manifest_interop.scala | |
parent | 888d0b4868a62c8d8288a4a8b639d282355ac33f (diff) | |
parent | 079296632d8ef5ecc40aafa83757231599c78783 (diff) | |
download | scala-aef791268631ef38aaedd83af87191bdf73196f5.tar.gz scala-aef791268631ef38aaedd83af87191bdf73196f5.tar.bz2 scala-aef791268631ef38aaedd83af87191bdf73196f5.zip |
Merge pull request #1607 from retronym/ticket/6640
SI-6640 Better reporting of deficient classpaths.
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.scala | 15 |
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 +} |