Skip to content

Commit 3bdb0eb

Browse files
committed
Move -sourcepath tests
Move -sourcepath tests so that the directory passed to -sourcepath does not contain any unrelated files.
1 parent c03d76a commit 3bdb0eb

File tree

12 files changed

+16
-16
lines changed

12 files changed

+16
-16
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ class CompilationTests extends ParallelTesting {
3939
compileFile("tests/pos-scala2/rewrites.scala", scala2CompatMode.and("-rewrite")).copyToTarget(),
4040
compileFile("tests/pos-special/utf8encoded.scala", explicitUTF8),
4141
compileFile("tests/pos-special/utf16encoded.scala", explicitUTF16),
42-
compileFile("tests/pos-special/completeFromSource/Test.scala", defaultOptions.and("-sourcepath", "tests/pos-special")),
43-
compileFile("tests/pos-special/completeFromSource/Test2.scala", defaultOptions.and("-sourcepath", "tests/pos-special")),
44-
compileFile("tests/pos-special/completeFromSource/Test3.scala", defaultOptions.and("-sourcepath", "tests/pos-special")),
45-
compileFile("tests/pos-special/completeFromSource/nested/Test4.scala", defaultOptions.and("-sourcepath", "tests/pos-special")),
42+
compileFile("tests/pos-special/sourcepath/outer/Test.scala", defaultOptions.and("-sourcepath", "tests/pos-special/sourcepath")),
43+
compileFile("tests/pos-special/sourcepath/outer/Test2.scala", defaultOptions.and("-sourcepath", "tests/pos-special/sourcepath")),
44+
compileFile("tests/pos-special/sourcepath/outer/Test3.scala", defaultOptions.and("-sourcepath", "tests/pos-special/sourcepath")),
45+
compileFile("tests/pos-special/sourcepath/outer/nested/Test4.scala", defaultOptions.and("-sourcepath", "tests/pos-special/sourcepath")),
4646
compileFilesInDir("tests/pos-special/fatal-warnings", defaultOptions.and("-Xfatal-warnings", "-feature")),
4747
compileFilesInDir("tests/pos-special/spec-t5545", defaultOptions),
4848
compileFilesInDir("tests/pos-special/strawman-collections", defaultOptions),
@@ -135,7 +135,7 @@ class CompilationTests extends ParallelTesting {
135135
compileFilesInDir("tests/neg-custom-args/isInstanceOf", allowDeepSubtypes and "-Xfatal-warnings"),
136136
compileFile("tests/neg-custom-args/i3627.scala", allowDeepSubtypes),
137137
compileFile("tests/neg-custom-args/matchtype-loop.scala", allowDeepSubtypes),
138-
compileFile("tests/neg-custom-args/completeFromSource/nested/Test1.scala", defaultOptions.and("-sourcepath", "tests/neg-custom-args")),
138+
compileFile("tests/neg-custom-args/sourcepath/outer/nested/Test1.scala", defaultOptions.and("-sourcepath", "tests/neg-custom-args/sourcepath")),
139139
compileList("duplicate source", List(
140140
"tests/neg-custom-args/toplevel-samesource/S.scala",
141141
"tests/neg-custom-args/toplevel-samesource/nested/S.scala"),

tests/neg-custom-args/completeFromSource/nested/D.java renamed to tests/neg-custom-args/sourcepath/outer/nested/D.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package completeFromSource.nested;
1+
package outer.nested;
22

33
public class D {
44
public D(int i) {

tests/neg-custom-args/completeFromSource/nested/Test1.scala renamed to tests/neg-custom-args/sourcepath/outer/nested/Test1.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package completeFromSource.nested
1+
package outer.nested
22

33
class Test4 {
44

tests/pos-special/completeFromSource/Test.scala renamed to tests/pos-special/sourcepath/outer/Test.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package completeFromSource
1+
package outer
22

33
class Test extends nested.A(22) {
44

tests/pos-special/completeFromSource/Test2.scala renamed to tests/pos-special/sourcepath/outer/Test2.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package completeFromSource
1+
package outer
22
import nested._
33

44
class Test2 extends A(22) {

tests/pos-special/completeFromSource/Test3.scala renamed to tests/pos-special/sourcepath/outer/Test3.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package completeFromSource
1+
package outer
22
import nested._
33

44
class Test3 {

tests/pos-special/completeFromSource/nested/A.scala renamed to tests/pos-special/sourcepath/outer/nested/A.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package completeFromSource.nested
1+
package outer.nested
22

33
class A(y: Int) {
44

tests/pos-special/completeFromSource/nested/BC.scala renamed to tests/pos-special/sourcepath/outer/nested/BC.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package completeFromSource.nested
1+
package outer.nested
22

33

44
case class B(x: Int) extends A(x)

tests/pos-special/completeFromSource/nested/D.java renamed to tests/pos-special/sourcepath/outer/nested/D.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package completeFromSource.nested;
1+
package outer.nested;
22

33
public class D {
44
public D(int i) {

tests/pos-special/completeFromSource/nested/Test4.scala renamed to tests/pos-special/sourcepath/outer/nested/Test4.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package completeFromSource.nested
1+
package outer.nested
22

33
class Test4 {
44

tests/pos-special/completeFromSource/nested/toplevel1.scala renamed to tests/pos-special/sourcepath/outer/nested/toplevel1.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package completeFromSource
1+
package outer
22
package nested
33

44
val one: Int = 1

tests/pos-special/completeFromSource/toplevel2.scala renamed to tests/pos-special/sourcepath/outer/toplevel2.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package completeFromSource
1+
package outer
22
import nested._
33

44
object toplevel2 {

0 commit comments

Comments
 (0)