diff options
author | Lukas Rytz <lukas.rytz@epfl.ch> | 2009-10-26 09:56:33 +0000 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@epfl.ch> | 2009-10-26 09:56:33 +0000 |
commit | ee02ad59ce2c42758712a1385f33ce962ae4107c (patch) | |
tree | 850dc44bd9947303242c4fcc10f341427ce7eb15 /test/files/run | |
parent | 2270544a9c416efab073cf70360098ff961f976a (diff) | |
download | scala-ee02ad59ce2c42758712a1385f33ce962ae4107c.tar.gz scala-ee02ad59ce2c42758712a1385f33ce962ae4107c.tar.bz2 scala-ee02ad59ce2c42758712a1385f33ce962ae4107c.zip |
new classpaths.
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/constrained-types.scala | 2 | ||||
-rw-r--r-- | test/files/run/docgenerator.scala | 2 | ||||
-rw-r--r-- | test/files/run/lisp.scala | 2 | ||||
-rw-r--r-- | test/files/run/t1500.scala | 2 | ||||
-rw-r--r-- | test/files/run/t1501.scala | 3 |
5 files changed, 10 insertions, 1 deletions
diff --git a/test/files/run/constrained-types.scala b/test/files/run/constrained-types.scala index 56fbd749c0..59fd0b1b8c 100644 --- a/test/files/run/constrained-types.scala +++ b/test/files/run/constrained-types.scala @@ -90,6 +90,8 @@ object Test { settings.Xexperimental.value = true settings.selfInAnnots.value = true settings.deprecation.value = true + // when running that compiler, give it a scala-library to the classpath + settings.classpath.value = System.getProperty("java.class.path") val interp = new Interpreter(settings) diff --git a/test/files/run/docgenerator.scala b/test/files/run/docgenerator.scala index f3738f4fc0..59f90ba415 100644 --- a/test/files/run/docgenerator.scala +++ b/test/files/run/docgenerator.scala @@ -113,6 +113,8 @@ object Foo2 { var reporter: ConsoleReporter = _ def process(args: Array[String]) { val docSettings = new scala.tools.nsc.doc.Settings(error) + // when running that compiler, give it a scala-library to the classpath + docSettings.classpath.value = System.getProperty("java.class.path") reporter = new ConsoleReporter(docSettings) val command = new CompilerCommand(args.toList, docSettings, error, false) try { diff --git a/test/files/run/lisp.scala b/test/files/run/lisp.scala index 014990fc37..fe3941d0db 100644 --- a/test/files/run/lisp.scala +++ b/test/files/run/lisp.scala @@ -332,7 +332,7 @@ object LispAny extends Lisp { val result = eval1(x, env); if (trace) { indent -= 1; - for (val x <- range(1, indent)) Console.print(" "); + for (x <- range(1, indent)) Console.print(" "); Console.println("<=== " + result); } curexp = prevexp; diff --git a/test/files/run/t1500.scala b/test/files/run/t1500.scala index 58adea221c..de79b84e75 100644 --- a/test/files/run/t1500.scala +++ b/test/files/run/t1500.scala @@ -20,6 +20,8 @@ object Test { val tool = new Interpreter(new Settings()) val global = tool.compiler + // when running that compiler, give it a scala-library to the classpath + global.settings.classpath.value = System.getProperty("java.class.path") import global._ import definitions._ diff --git a/test/files/run/t1501.scala b/test/files/run/t1501.scala index 2a29a6c5a5..851daae0bb 100644 --- a/test/files/run/t1501.scala +++ b/test/files/run/t1501.scala @@ -31,6 +31,9 @@ object Test { val tool = new Interpreter(new Settings()) val global = tool.compiler + // when running that compiler, give it a scala-library to the classpath + global.settings.classpath.value = System.getProperty("java.class.path") + import global._ import definitions._ |