diff options
author | Som Snytt <som.snytt@gmail.com> | 2014-10-18 08:38:47 -0700 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2014-10-28 01:11:08 -0700 |
commit | 6233c305f88c5c4116e51371380a184eab26f653 (patch) | |
tree | 81cdf266643e4bd440d5502f7b32ea6411f62a26 /test/files/run/global-showdef.scala | |
parent | be505f6066f9d69c8cd8bbff0439a8867d32395e (diff) | |
download | scala-6233c305f88c5c4116e51371380a184eab26f653.tar.gz scala-6233c305f88c5c4116e51371380a184eab26f653.tar.bz2 scala-6233c305f88c5c4116e51371380a184eab26f653.zip |
Reduce compiles for global-showdef test
You can only show one class or object at a time,
but we can show one of each to reduce the compilations
for this test.
It seems the original issue happened because the test
started to create class files after SI-8217.
So, also stop compile after typer, because why stress the kitteh.
Diffstat (limited to 'test/files/run/global-showdef.scala')
-rw-r--r-- | test/files/run/global-showdef.scala | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/files/run/global-showdef.scala b/test/files/run/global-showdef.scala index bbad123d01..276fcc1e7c 100644 --- a/test/files/run/global-showdef.scala +++ b/test/files/run/global-showdef.scala @@ -2,7 +2,7 @@ import scala.tools.partest.DirectTest import scala.tools.nsc.util.stringFromStream object Test extends DirectTest { - override def extraSettings: String = "-usejavacp -Yshow:typer" + override def extraSettings: String = "-usejavacp -Yshow:typer -Ystop-after:typer" override def code = """ package foo.bar @@ -41,8 +41,10 @@ object Bippy { def run(args: String*) = slurp(args: _*).lines filter interesting foreach println - classes foreach (x => run("-Xshow-class", x)) - objects foreach (x => run("-Xshow-object", x)) + classes.zipAll(objects, "", "") foreach { + case (c, "") => run("-Xshow-class", c) + case (c, o) => run("-Xshow-class", c, "-Xshow-object", o) + } } // slurp the compilation result |