Skip to content

Commit c0a7d12

Browse files
authored
Run macro tests only on bootstrapped test (#16775)
These tests can fail when bootstrapping the compiler with a new TASTy version
2 parents e259ceb + fd64c6a commit c0a7d12

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

+2
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ class BootstrappedOnlyCompilationTests {
130130
compileFilesInDir("tests/run-custom-args/Yretain-trees", defaultOptions and "-Yretain-trees"),
131131
compileFilesInDir("tests/run-custom-args/Yread-comments", defaultOptions and "-Yread-docs"),
132132
compileFilesInDir("tests/run-custom-args/run-macros-erased", defaultOptions.and("-language:experimental.erasedDefinitions").and("-Xcheck-macros")),
133+
compileDir("tests/run-custom-args/Xmacro-settings/simple", defaultOptions.and("-Xmacro-settings:one,two,three")),
134+
compileDir("tests/run-custom-args/Xmacro-settings/compileTimeEnv", defaultOptions.and("-Xmacro-settings:a,b=1,c.b.a=x.y.z=1,myLogger.level=INFO")),
133135
)
134136
}.checkRuns()
135137

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

-2
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,6 @@ class CompilationTests {
208208
compileFile("tests/run-custom-args/defaults-serizaliable-no-forwarders.scala", defaultOptions and "-Xmixin-force-forwarders:false"),
209209
compileFilesInDir("tests/run-custom-args/erased", defaultOptions.and("-language:experimental.erasedDefinitions")),
210210
compileFilesInDir("tests/run-custom-args/fatal-warnings", defaultOptions.and("-Xfatal-warnings")),
211-
compileDir("tests/run-custom-args/Xmacro-settings/simple", defaultOptions.and("-Xmacro-settings:one,two,three")),
212-
compileDir("tests/run-custom-args/Xmacro-settings/compileTimeEnv", defaultOptions.and("-Xmacro-settings:a,b=1,c.b.a=x.y.z=1,myLogger.level=INFO")),
213211
compileFilesInDir("tests/run-custom-args/captures", allowDeepSubtypes.and("-language:experimental.captureChecking")),
214212
compileFilesInDir("tests/run-deep-subtype", allowDeepSubtypes),
215213
compileFilesInDir("tests/run", defaultOptions.and("-Ysafe-init")),

0 commit comments

Comments
 (0)