diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2012-09-26 21:18:03 +0200 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2012-09-26 21:18:27 +0200 |
commit | 6d633716ab45a29147574b119b195049cf8278d6 (patch) | |
tree | 5a442083dd04376794c30abb7c79b2423ee611e3 | |
parent | cf08f25d598a1d44ed4440b1cc1097a5869aefdd (diff) | |
download | scala-6d633716ab45a29147574b119b195049cf8278d6.tar.gz scala-6d633716ab45a29147574b119b195049cf8278d6.tar.bz2 scala-6d633716ab45a29147574b119b195049cf8278d6.zip |
hardens DirectTest against missing -d settings
And also explicitly specifies -d in a test where I forgot to do that.
Double checking never hurts.
-rw-r--r-- | src/partest/scala/tools/partest/DirectTest.scala | 2 | ||||
-rw-r--r-- | test/files/run/typetags_without_scala_reflect_manifest_lookup.scala | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/partest/scala/tools/partest/DirectTest.scala b/src/partest/scala/tools/partest/DirectTest.scala index ff047daf9e..af2fc986fa 100644 --- a/src/partest/scala/tools/partest/DirectTest.scala +++ b/src/partest/scala/tools/partest/DirectTest.scala @@ -37,7 +37,7 @@ abstract class DirectTest extends App { } // new compiler def newCompiler(args: String*): Global = { - val settings = newSettings((CommandLineParser tokenize extraSettings) ++ args.toList) + val settings = newSettings((CommandLineParser tokenize ("-d \"" + testOutput.path + "\" " + extraSettings)) ++ args.toList) if (settings.Yrangepos.value) new Global(settings) with interactive.RangePositions else new Global(settings) } diff --git a/test/files/run/typetags_without_scala_reflect_manifest_lookup.scala b/test/files/run/typetags_without_scala_reflect_manifest_lookup.scala index 37047e7884..6fd3d2dc2b 100644 --- a/test/files/run/typetags_without_scala_reflect_manifest_lookup.scala +++ b/test/files/run/typetags_without_scala_reflect_manifest_lookup.scala @@ -2,7 +2,7 @@ import scala.tools.partest._ import scala.tools.nsc.Settings object Test extends DirectTest { - override def extraSettings = "-cp " + sys.props("partest.lib") + override def extraSettings = "-cp " + sys.props("partest.lib") + " -d \"" + testOutput.path + "\"" def code = """ object Test extends App { |