Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/harness/harness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down