Skip to content

Commit c27fe5d

Browse files
committed
Fix tests after stabilizing lazy vals
1 parent b0690ca commit c27fe5d

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

compiler/test/dotc/run-lazy-vals-tests.allowlist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ null-lazy-val.scala
3838
patmatch-classtag.scala
3939
priorityQueue.scala
4040
serialization-new-legacy.scala
41-
serialization-new.scala
4241
singletons.scala
4342
statics.scala
4443
stream_flatmap_odds.scala

compiler/test/dotty/tools/backend/jvm/DottyBytecodeTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ class DottyBytecodeTests extends DottyBytecodeTest {
597597
val clsIn = dir.lookupName("Test.class", directory = false).input
598598
val clsNode = loadClassNode(clsIn)
599599
val method = getMethod(clsNode, "test")
600-
assertEquals(88, instructionsFromMethod(method).size)
600+
assertEquals(23, instructionsFromMethod(method).size)
601601
}
602602
}
603603

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ class CompilationTests {
211211
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")),
212212
compileFilesInDir("tests/run-custom-args/captures", allowDeepSubtypes.and("-language:experimental.captureChecking")),
213213
compileFilesInDir("tests/run-deep-subtype", allowDeepSubtypes),
214-
compileFilesInDir("tests/run", defaultOptions.and("-Ysafe-init"), FileFilter.exclude("serialization-new.scala")),
214+
compileFilesInDir("tests/run", defaultOptions.and("-Ysafe-init")),
215215
// Run tests for legacy lazy vals.
216216
compileFilesInDir("tests/run", defaultOptions.and("-Ysafe-init", "-Ylegacy-lazy-vals", "-Ycheck-constraint-deps"), FileFilter.include(TestSources.runLazyValsAllowlist)),
217217
).checkRuns()

0 commit comments

Comments
 (0)