aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMartijn Hoekstra <martijn.hoekstra@cargoxs.com>2016-08-26 10:49:39 +0200
committerMartijn Hoekstra <Martijn Hoekstra>2016-09-07 21:28:50 +0200
commit2a2f314ebcb1990f334f78f2ca933d197286c6b2 (patch)
tree671db89375a232172afd63f1d91c6fb7d2a2fe2c /test
parent75f4400a738da5e436ed65d6ba8c7fa2d8f4faee (diff)
downloaddotty-2a2f314ebcb1990f334f78f2ca933d197286c6b2.tar.gz
dotty-2a2f314ebcb1990f334f78f2ca933d197286c6b2.tar.bz2
dotty-2a2f314ebcb1990f334f78f2ca933d197286c6b2.zip
normalize paths for tests
Diffstat (limited to 'test')
-rw-r--r--test/test/CompilerTest.scala3
-rw-r--r--test/test/InterfaceEntryPointTest.scala2
-rw-r--r--test/test/OtherEntryPointsTest.scala4
3 files changed, 4 insertions, 5 deletions
diff --git a/test/test/CompilerTest.scala b/test/test/CompilerTest.scala
index 56b9e1099..b56b910bf 100644
--- a/test/test/CompilerTest.scala
+++ b/test/test/CompilerTest.scala
@@ -452,8 +452,7 @@ abstract class CompilerTest {
processFileDir(sourceFile, { sf =>
if (extensionsToCopy.contains(sf.extension)) {
dest.parent.jfile.mkdirs
- dest.toFile.writeAll("/* !!!!! WARNING: DO NOT MODIFY. Original is at: $sf !!!!! */",
- sf.slurp())
+ dest.toFile.writeAll(s"/* !!!!! WARNING: DO NOT MODIFY. Original is at: $sf !!!!! */", sf.slurp)
} else {
log(s"WARNING: ignoring $sf")
}
diff --git a/test/test/InterfaceEntryPointTest.scala b/test/test/InterfaceEntryPointTest.scala
index b193b5f64..438a9fa47 100644
--- a/test/test/InterfaceEntryPointTest.scala
+++ b/test/test/InterfaceEntryPointTest.scala
@@ -18,7 +18,7 @@ import scala.collection.mutable.ListBuffer
*/
class InterfaceEntryPointTest {
@Test def runCompilerFromInterface = {
- val sources = List("./tests/pos/HelloWorld.scala")
+ val sources = List("./tests/pos/HelloWorld.scala").map(p => new java.io.File(p).getPath())
val args = sources ++ List("-d", "./out/")
val mainClass = Class.forName("dotty.tools.dotc.Main")
diff --git a/test/test/OtherEntryPointsTest.scala b/test/test/OtherEntryPointsTest.scala
index 0186b357b..5f8681d38 100644
--- a/test/test/OtherEntryPointsTest.scala
+++ b/test/test/OtherEntryPointsTest.scala
@@ -17,7 +17,7 @@ import scala.collection.mutable.ListBuffer
*/
class OtherEntryPointsTest {
@Test def runCompiler = {
- val sources = List("./tests/pos/HelloWorld.scala")
+ val sources = List("./tests/pos/HelloWorld.scala").map(p => new java.io.File(p).getPath())
val args = sources ++ List("-d", "./out/")
val reporter = new CustomReporter
@@ -31,7 +31,7 @@ class OtherEntryPointsTest {
}
@Test def runCompilerWithContext = {
- val sources = List("./tests/pos/HelloWorld.scala")
+ val sources = List("./tests/pos/HelloWorld.scala").map(p => new java.io.File(p).getPath())
val args = sources ++ List("-d", "./out/")
val reporter = new CustomReporter