Skip to content

Commit 445cb79

Browse files
committed
Filter library text from RWC output
1 parent edc3ed3 commit 445cb79

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/harness/rwcRunner.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,9 @@ namespace RWC {
190190
if (compilerResult.errors.length === 0) {
191191
return null;
192192
}
193-
194-
return Harness.Compiler.getErrorBaseline(inputFiles.concat(otherFiles), compilerResult.errors);
193+
// Do not include the library in the baselines to avoid noise
194+
const baselineFiles = inputFiles.concat(otherFiles).filter(f => !Harness.isDefaultLibraryFile(f.unitName));
195+
return Harness.Compiler.getErrorBaseline(baselineFiles, compilerResult.errors);
195196
}, false, baselineOpts);
196197
});
197198

0 commit comments

Comments
 (0)