diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2015-07-29 19:37:49 +1000 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2015-07-30 10:03:16 +1000 |
commit | 5bb93b0b7357259eb588437a45063bf43595028a (patch) | |
tree | c8846595e5a2dccdb2f12ac17e5eaeac440468a3 /src/test/scala/scala/async | |
parent | 4b1dbeef9ec73612867afc5dd9c925faa8cbc30d (diff) | |
download | scala-async-5bb93b0b7357259eb588437a45063bf43595028a.tar.gz scala-async-5bb93b0b7357259eb588437a45063bf43595028a.tar.bz2 scala-async-5bb93b0b7357259eb588437a45063bf43595028a.zip |
Stop test compiler before code generation
This avoids leaving .class files in the working directory
after running the test.
Diffstat (limited to 'src/test/scala/scala/async')
-rw-r--r-- | src/test/scala/scala/async/run/WarningsSpec.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/scala/scala/async/run/WarningsSpec.scala b/src/test/scala/scala/async/run/WarningsSpec.scala index 3b16899..00c6466 100644 --- a/src/test/scala/scala/async/run/WarningsSpec.scala +++ b/src/test/scala/scala/async/run/WarningsSpec.scala @@ -34,7 +34,7 @@ class WarningsSpec { @Test // https://github.com/scala/async/issues/74 def noDeadCodeWarningForAsyncThrow() { - val global = mkGlobal("-cp ${toolboxClasspath} -Yrangepos -Ywarn-dead-code -Xfatal-warnings") + val global = mkGlobal("-cp ${toolboxClasspath} -Yrangepos -Ywarn-dead-code -Xfatal-warnings -Ystop-after:refchecks") // was: "a pure expression does nothing in statement position; you may be omitting necessary parentheses" val source = """ @@ -51,8 +51,8 @@ class WarningsSpec { } @Test - def noDeadCodeWarning() { - val global = mkGlobal("-cp ${toolboxClasspath} -Yrangepos -Ywarn-dead-code -Xfatal-warnings") + def noDeadCodeWarningInMacroExpansion() { + val global = mkGlobal("-cp ${toolboxClasspath} -Yrangepos -Ywarn-dead-code -Xfatal-warnings -Ystop-after:refchecks") val source = """ | class Test { | def test = { |