From 5bb93b0b7357259eb588437a45063bf43595028a Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Wed, 29 Jul 2015 19:37:49 +1000 Subject: Stop test compiler before code generation This avoids leaving .class files in the working directory after running the test. --- src/test/scala/scala/async/run/WarningsSpec.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 = { -- cgit v1.2.3