File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -452,8 +452,7 @@ abstract class CompilerTest {
452
452
processFileDir(sourceFile, { sf =>
453
453
if (extensionsToCopy.contains(sf.extension)) {
454
454
dest.parent.jfile.mkdirs
455
- dest.toFile.writeAll(" /* !!!!! WARNING: DO NOT MODIFY. Original is at: $sf !!!!! */" ,
456
- sf.slurp())
455
+ dest.toFile.writeAll(s " /* !!!!! WARNING: DO NOT MODIFY. Original is at: $sf !!!!! */ " , sf.slurp)
457
456
} else {
458
457
log(s " WARNING: ignoring $sf" )
459
458
}
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import scala.collection.mutable.ListBuffer
18
18
*/
19
19
class InterfaceEntryPointTest {
20
20
@ Test def runCompilerFromInterface = {
21
- val sources = List (" ./tests/pos/HelloWorld.scala" )
21
+ val sources = List (" ./tests/pos/HelloWorld.scala" ).map(p => new java.io. File (p).getPath())
22
22
val args = sources ++ List (" -d" , " ./out/" )
23
23
24
24
val mainClass = Class .forName(" dotty.tools.dotc.Main" )
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import scala.collection.mutable.ListBuffer
17
17
*/
18
18
class OtherEntryPointsTest {
19
19
@ Test def runCompiler = {
20
- val sources = List (" ./tests/pos/HelloWorld.scala" )
20
+ val sources = List (" ./tests/pos/HelloWorld.scala" ).map(p => new java.io. File (p).getPath())
21
21
val args = sources ++ List (" -d" , " ./out/" )
22
22
23
23
val reporter = new CustomReporter
@@ -31,7 +31,7 @@ class OtherEntryPointsTest {
31
31
}
32
32
33
33
@ Test def runCompilerWithContext = {
34
- val sources = List (" ./tests/pos/HelloWorld.scala" )
34
+ val sources = List (" ./tests/pos/HelloWorld.scala" ).map(p => new java.io. File (p).getPath())
35
35
val args = sources ++ List (" -d" , " ./out/" )
36
36
37
37
val reporter = new CustomReporter
You can’t perform that action at this time.
0 commit comments