summaryrefslogtreecommitdiff
path: root/test/files/run/typetags_without_scala_reflect_typetag_lookup.scala
diff options
context:
space:
mode:
authorJosh Suereth <Joshua.Suereth@gmail.com>2012-11-19 10:08:29 -0800
committerJosh Suereth <Joshua.Suereth@gmail.com>2012-11-19 10:08:29 -0800
commitaef791268631ef38aaedd83af87191bdf73196f5 (patch)
tree851eebf3fd63af7fcac4fb79fbaea273f5388ecd /test/files/run/typetags_without_scala_reflect_typetag_lookup.scala
parent888d0b4868a62c8d8288a4a8b639d282355ac33f (diff)
parent079296632d8ef5ecc40aafa83757231599c78783 (diff)
downloadscala-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_lookup.scala')
-rw-r--r--test/files/run/typetags_without_scala_reflect_typetag_lookup.scala14
1 files changed, 6 insertions, 8 deletions
diff --git a/test/files/run/typetags_without_scala_reflect_typetag_lookup.scala b/test/files/run/typetags_without_scala_reflect_typetag_lookup.scala
index e51ecdb180..1fbdc62a1e 100644
--- a/test/files/run/typetags_without_scala_reflect_typetag_lookup.scala
+++ b/test/files/run/typetags_without_scala_reflect_typetag_lookup.scala
@@ -1,6 +1,6 @@
import scala.tools.partest._
-object Test extends DirectTest {
+object Test extends StoreReporterDirectTest {
def code = ???
def library = """
@@ -32,14 +32,12 @@ object Test extends DirectTest {
}
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 call a method that can't be unpickled
+ // 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
+}