aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2015-07-29 19:37:49 +1000
committerJason Zaugg <jzaugg@gmail.com>2015-07-30 10:03:16 +1000
commit5bb93b0b7357259eb588437a45063bf43595028a (patch)
treec8846595e5a2dccdb2f12ac17e5eaeac440468a3 /src
parent4b1dbeef9ec73612867afc5dd9c925faa8cbc30d (diff)
downloadscala-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')
-rw-r--r--src/test/scala/scala/async/run/WarningsSpec.scala6
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 = {