Dont count duplicated errors in case-insensitive duped files in rwc (#24383)

This commit is contained in:
Wesley Wigham 2018-05-24 12:23:43 -07:00 committed by GitHub
parent 16af96b006
commit a0b57808d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}