Skip to content

Commit 8bd1625

Browse files
authored
Merge pull request #4049 from dotty-staging/fix-#4048
Fix path to `dotty/out`
2 parents 88028d4 + 930e04b commit 8bd1625

15 files changed

+19
-19
lines changed

compiler/test/dotty/tools/dotc/CompilationTests.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,9 @@ class CompilationTests extends ParallelTesting {
297297
}.keepOutput :: Nil
298298
}.map(_.checkCompile())
299299

300-
assert(new java.io.File(s"../out/$dotty1Group/dotty/").exists)
301-
assert(new java.io.File(s"../out/$dotty2Group/dotty/").exists)
302-
assert(new java.io.File(s"../out/$libGroup/src/").exists)
300+
assert(new java.io.File(s"out/$dotty1Group/dotty/").exists)
301+
assert(new java.io.File(s"out/$dotty2Group/dotty/").exists)
302+
assert(new java.io.File(s"out/$libGroup/src/").exists)
303303
compileList("idempotency", List("tests/idempotency/BootstrapChecker.scala", "tests/idempotency/IdempotencyCheck.scala"), defaultOptions).checkRuns()
304304

305305
tests.foreach(_.delete())

compiler/test/dotty/tools/dotc/InterfaceEntryPointTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class InterfaceEntryPointTest {
2222
@Test def runCompilerFromInterface = {
2323
val sources =
2424
List("tests/pos/HelloWorld.scala").map(p => Paths.get(p).toAbsolutePath().toString)
25-
val out = Paths.get("../out/").toAbsolutePath()
25+
val out = Paths.get("out/").toAbsolutePath()
2626
if (Files.notExists(out))
2727
Files.createDirectory(out)
2828

compiler/test/dotty/tools/dotc/SettingsTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class SettingsTests {
2020
@Test def jarOutput: Unit = {
2121
val classPath = mkClassPath(Jars.dottyTestDeps)
2222
val source = "tests/pos/Foo.scala"
23-
val out = Paths.get("../out/jaredFoo.jar").normalize
23+
val out = Paths.get("out/jaredFoo.jar").normalize
2424
if (Files.exists(out)) Files.delete(out)
2525
val options = Array("-classpath", classPath, "-d", out.toString, source)
2626
val reporter = Main.process(options)

compiler/test/dotty/tools/vulpix/ParallelTesting.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1312,7 +1312,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
13121312

13131313
object ParallelTesting {
13141314

1315-
def defaultOutputDir: String = "../out/"
1315+
def defaultOutputDir: String = "out/"
13161316

13171317
def isSourceFile(f: JFile): Boolean = {
13181318
val name = f.getName
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

22
object Test {
33
def main(args: Array[String]): Unit =
4-
IdempotencyCheck.checkIdempotency("../out/tastyBootstrap/dotty1", "../out/tastyBootstrap/dotty2")
4+
IdempotencyCheck.checkIdempotency("out/tastyBootstrap/dotty1", "out/tastyBootstrap/dotty2")
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

22
object Test {
33
def main(args: Array[String]): Unit =
4-
IdempotencyCheck.checkIdempotency("../out/idempotency/orderIdempotency1", "../out/idempotency/orderIdempotency2")
4+
IdempotencyCheck.checkIdempotency("out/idempotency/orderIdempotency1", "out/idempotency/orderIdempotency2")
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

22
object Test {
33
def main(args: Array[String]): Unit =
4-
IdempotencyCheck.checkIdempotency("../out/idempotency/posIdempotency1", "../out/idempotency/posIdempotency2")
4+
IdempotencyCheck.checkIdempotency("out/idempotency/posIdempotency1", "out/idempotency/posIdempotency2")
55
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11

22
object Test {
33
def main(args: Array[String]): Unit = {
4-
IdempotencyCheck.checkIdempotency("../out/idempotency/strawman0", "../out/idempotency/strawman1")
4+
IdempotencyCheck.checkIdempotency("out/idempotency/strawman0", "out/idempotency/strawman1")
55
// FIXME: #2964 and maybe more
66
/*
7-
IdempotencyCheck.checkIdempotency("../out/idempotency/strawman1", "../out/idempotency/strawman2")
8-
IdempotencyCheck.checkIdempotency("../out/idempotency/strawman1", "../out/idempotency/strawman3")
7+
IdempotencyCheck.checkIdempotency("out/idempotency/strawman1", "out/idempotency/strawman2")
8+
IdempotencyCheck.checkIdempotency("out/idempotency/strawman1", "out/idempotency/strawman3")
99
*/
1010
}
1111
}

tests/pos/lambda.decompiled

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
================================================================================
2-
../out/posTestFromTasty/pos/lambda/foo/Foo.class
2+
out/posTestFromTasty/pos/lambda/foo/Foo.class
33
--------------------------------------------------------------------------------
44
package foo {
55
class Foo() extends Object() {

tests/pos/methodTypes.decompiled

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
================================================================================
2-
../out/posTestFromTasty/pos/methodTypes/Foo.class
2+
out/posTestFromTasty/pos/methodTypes/Foo.class
33
--------------------------------------------------------------------------------
44
package <empty> {
55
class Foo() extends Object() {

tests/pos/simpleCaseObject.decompiled

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
================================================================================
2-
../out/posTestFromTasty/pos/simpleCaseObject/foo/Foo.class
2+
out/posTestFromTasty/pos/simpleCaseObject/foo/Foo.class
33
--------------------------------------------------------------------------------
44
package foo {
55
case object Foo() extends Object() with _root_.scala.Product {

tests/pos/simpleClass.decompiled

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
================================================================================
2-
../out/posTestFromTasty/pos/simpleClass/foo/A.class
2+
out/posTestFromTasty/pos/simpleClass/foo/A.class
33
--------------------------------------------------------------------------------
44
package foo {
55
class A() extends Object() {}

tests/run-with-compiler/quote-run-with-settings.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ object Test {
1616
println(expr.run)
1717
println()
1818

19-
val outDir = Paths.get("../out/out-quoted-1")
19+
val outDir = Paths.get("out/out-quoted-1")
2020
val classFile = outDir.resolve("Quoted.class")
2121

2222
Files.deleteIfExists(classFile)

tests/run/puzzle.decompiled

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
================================================================================
2-
../out/runTestFromTasty/run/puzzle/Test.class
2+
out/runTestFromTasty/run/puzzle/Test.class
33
--------------------------------------------------------------------------------
44
package <empty> {
55
object Test() extends Object() { this: Test.type =>

tests/vulpix-tests/meta/sbt-output.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Diff (expected on the left, actual right):
1515
[info] Test dotty.tools.vulpix.VulpixMetaTests.compileNeg started
1616
Testing tests/vulpix-tests/meta/neg/missing-error-annotation.scala
1717

18-
Wrong number of errors encountered when compiling ../out/VulpixMetaTests/neg/missing-error-annotation, expected: 0, actual: 2
18+
Wrong number of errors encountered when compiling out/VulpixMetaTests/neg/missing-error-annotation, expected: 0, actual: 2
1919
[error] Test dotty.tools.vulpix.VulpixMetaTests.compileNeg failed: java.lang.AssertionError: Neg test shouldn't have failed, but did. Reasons:
2020
[error]
2121
[error] - encountered 2 error(s), took 0.093 sec SKIP

0 commit comments

Comments
 (0)