mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
Dont count duplicated errors in case-insensitive duped files in rwc (#24383)
This commit is contained in:
parent
16af96b006
commit
a0b57808d0
@ -1469,7 +1469,14 @@ namespace Harness {
|
||||
|
||||
// Verify we didn't miss any errors in this file
|
||||
assert.equal(markedErrorCount, fileErrors.length, "count of errors in " + inputFile.unitName);
|
||||
const isDupe = dupeCase.has(sanitizeTestFilePath(inputFile.unitName));
|
||||
yield [checkDuplicatedFileName(inputFile.unitName, dupeCase), outputLines, errorsReported];
|
||||
if (isDupe && !(options && options.caseSensitive)) {
|
||||
// Case-duplicated files on a case-insensitive build will have errors reported in both the dupe and the original
|
||||
// thanks to the canse-insensitive path comparison on the error file path - We only want to count those errors once
|
||||
// for the assert below, so we subtract them here.
|
||||
totalErrorsReportedInNonLibraryFiles -= errorsReported;
|
||||
}
|
||||
outputLines = "";
|
||||
errorsReported = 0;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user