Skip to content
This repository was archived by the owner on Jun 23, 2020. It is now read-only.

Commit b06a614

Browse files
committed
Merge pull request #4 from retronym/topic/check-exists
Fail fast in toolbox tests upon absent plugin JAR
2 parents 5aca5c8 + c6183b4 commit b06a614

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

library/src/test/scala/scala/tools/selectivecps/CompilerErrors.scala

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,12 @@ class CompilerErrors extends CompilerTesting {
206206
}
207207

208208
class CompilerTesting {
209-
def loadPlugin = s"-Xplugin:${sys.props("scala-continuations-plugin.jar")} -P:continuations:enable"
209+
private def pluginJar: String = {
210+
val f = sys.props("scala-continuations-plugin.jar")
211+
assert(new java.io.File(f).exists, f)
212+
f
213+
}
214+
def loadPlugin = s"-Xplugin:${pluginJar} -P:continuations:enable"
210215

211216
// note: `code` should have a | margin
212217
def cpsErrorMessages(msg: String, code: String) =

0 commit comments

Comments
 (0)