From d63b63f536aafa494c70835526174be1987050de Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Tue, 2 Jul 2013 11:55:46 +0200 Subject: Avoid hardcoded "2.10" in tests. This allows us to cross build against 2.10.x and 2.11.x. --- src/test/scala/scala/async/TreeInterrogation.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/test/scala/scala/async/TreeInterrogation.scala') diff --git a/src/test/scala/scala/async/TreeInterrogation.scala b/src/test/scala/scala/async/TreeInterrogation.scala index deaee03..43393a7 100644 --- a/src/test/scala/scala/async/TreeInterrogation.scala +++ b/src/test/scala/scala/async/TreeInterrogation.scala @@ -15,7 +15,7 @@ class TreeInterrogation { @Test def `a minimal set of vals are lifted to vars`() { val cm = reflect.runtime.currentMirror - val tb = mkToolbox("-cp target/scala-2.10/classes") + val tb = mkToolbox(s"-cp ${toolboxClasspath}") val tree = tb.parse( """| import _root_.scala.async.AsyncId._ | async { @@ -52,7 +52,7 @@ class TreeInterrogation { && !dd.symbol.asTerm.isAccessor && !dd.symbol.asTerm.isSetter => dd.name } }.flatten - defDefs.map(_.decoded.trim).toSet mustBe (Set("foo$1", "apply", "resume$async", "")) + defDefs.map(_.decoded.trim).toSet mustBe (Set("foo$1", "apply", "resume", "")) } } @@ -68,7 +68,7 @@ object TreeInterrogation extends App { withDebug { val cm = reflect.runtime.currentMirror - val tb = mkToolbox("-cp target/scala-2.10/classes -Xprint:flatten") + val tb = mkToolbox("-cp ${toolboxClasspath} -Xprint:flatten") import scala.async.Async._ val tree = tb.parse( """ import _root_.scala.async.AsyncId.{async, await} -- cgit v1.2.3