Skip to content

Commit 5502d5c

Browse files
Merge pull request #3668 from dotty-staging/remove-compiler-from-run-test-classpath
Remove compiler from class path of run tests while running
2 parents 406a064 + dee471b commit 5502d5c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ object TestConfiguration {
1717
)
1818

1919
val classPath = mkClassPath(Jars.dottyTestDeps)
20+
val runClassPath = mkClassPath(Jars.dottyLib :: Nil)
2021

2122
def mkClassPath(classPaths: List[String]): String = {
2223
classPaths map { p =>
@@ -46,7 +47,7 @@ object TestConfiguration {
4647
val yCheckOptions = Array("-Ycheck:tailrec,resolveSuper,erasure,mixin,getClass,elimStaticThis,labelDef")
4748

4849
val basicDefaultOptions = checkOptions ++ noCheckOptions ++ yCheckOptions
49-
val defaultUnoptimised = TestFlags(classPath, basicDefaultOptions)
50+
val defaultUnoptimised = TestFlags(classPath, runClassPath, basicDefaultOptions)
5051
val defaultOptimised = defaultUnoptimised and "-optimise"
5152
val defaultOptions = defaultUnoptimised
5253
val allowDeepSubtypes = defaultOptions without "-Yno-deep-subtypes"

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ final case class TestFlags(
1414
def withClasspath(classPath: String): TestFlags =
1515
TestFlags(s"$defaultClassPath:$classPath", runClassPath, options)
1616

17+
def withRunClasspath(classPath: String): TestFlags =
18+
TestFlags(defaultClassPath, s"$runClassPath:$classPath", options)
19+
1720
def all: Array[String] = Array("-classpath", defaultClassPath) ++ options
1821
}
1922

0 commit comments

Comments
 (0)