diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-05-13 13:11:09 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-05-13 13:11:09 +0200 |
commit | 28bb27672bf7e4fb2bb80df48ee8c70628de19c4 (patch) | |
tree | ae7dfd0ece97a2b8ad8b9c0915878f2f18699d7e /tests/pending/run/t6240b | |
parent | 1d13da929f7cce642efde39dff2944dfc5b276f9 (diff) | |
download | dotty-28bb27672bf7e4fb2bb80df48ee8c70628de19c4.tar.gz dotty-28bb27672bf7e4fb2bb80df48ee8c70628de19c4.tar.bz2 dotty-28bb27672bf7e4fb2bb80df48ee8c70628de19c4.zip |
Use LegacyApp in run tests.
Diffstat (limited to 'tests/pending/run/t6240b')
-rw-r--r-- | tests/pending/run/t6240b/StepThree.scala | 2 | ||||
-rw-r--r-- | tests/pending/run/t6240b/StepTwo.scala | 2 | ||||
-rw-r--r-- | tests/pending/run/t6240b/Test.scala | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/pending/run/t6240b/StepThree.scala b/tests/pending/run/t6240b/StepThree.scala index 6690b8351..a5432cdf1 100644 --- a/tests/pending/run/t6240b/StepThree.scala +++ b/tests/pending/run/t6240b/StepThree.scala @@ -1,4 +1,4 @@ -object StepThree extends App { +object StepThree extends dotty.runtime.LegacyApp { import scala.reflect.runtime.universe._ println(typeOf[StepThree.type]) } diff --git a/tests/pending/run/t6240b/StepTwo.scala b/tests/pending/run/t6240b/StepTwo.scala index d607c01cd..b3d977819 100644 --- a/tests/pending/run/t6240b/StepTwo.scala +++ b/tests/pending/run/t6240b/StepTwo.scala @@ -1,7 +1,7 @@ import java.io.File import java.net.URLClassLoader -object StepTwo extends App { +object StepTwo extends dotty.runtime.LegacyApp { val classes = new File(System.getProperty("launch.step.three")) val cl = new URLClassLoader(Array(classes.toURI.toURL), getClass.getClassLoader) val stepThree = cl.loadClass("StepThree") diff --git a/tests/pending/run/t6240b/Test.scala b/tests/pending/run/t6240b/Test.scala index 844c0763e..e474b554c 100644 --- a/tests/pending/run/t6240b/Test.scala +++ b/tests/pending/run/t6240b/Test.scala @@ -1,7 +1,7 @@ import java.io.File import scala.sys.process._ -object Test extends App { +object Test extends dotty.runtime.LegacyApp { def prop(key: String) = { val value = System.getProperties.getProperty(key) assert(value != null, key) |