Skip to content

Commit 5bb93b0

Browse files
committed
Stop test compiler before code generation
This avoids leaving .class files in the working directory after running the test.
1 parent 4b1dbee commit 5bb93b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/scala/scala/async/run/WarningsSpec.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class WarningsSpec {
3434
@Test
3535
// https://github.com/scala/async/issues/74
3636
def noDeadCodeWarningForAsyncThrow() {
37-
val global = mkGlobal("-cp ${toolboxClasspath} -Yrangepos -Ywarn-dead-code -Xfatal-warnings")
37+
val global = mkGlobal("-cp ${toolboxClasspath} -Yrangepos -Ywarn-dead-code -Xfatal-warnings -Ystop-after:refchecks")
3838
// was: "a pure expression does nothing in statement position; you may be omitting necessary parentheses"
3939
val source =
4040
"""
@@ -51,8 +51,8 @@ class WarningsSpec {
5151
}
5252

5353
@Test
54-
def noDeadCodeWarning() {
55-
val global = mkGlobal("-cp ${toolboxClasspath} -Yrangepos -Ywarn-dead-code -Xfatal-warnings")
54+
def noDeadCodeWarningInMacroExpansion() {
55+
val global = mkGlobal("-cp ${toolboxClasspath} -Yrangepos -Ywarn-dead-code -Xfatal-warnings -Ystop-after:refchecks")
5656
val source = """
5757
| class Test {
5858
| def test = {

0 commit comments

Comments
 (0)