Skip to content

Commit 1c7b124

Browse files
committed
Re-enable coverage_smoke.swift to test bots
We disabled this test because it started failing on the incremental bots. However, I couldn't reproduce the failure locally with a clean build. Try to reproduce the failure by enabling the test and running it through CI. Context: The specific failure was the llvm-cov detected a malformed coverage mapping in the 'coverage_smoke' binary. While debugging the issue, I found that the problem is that a FilenameIndex is invalid (refer: readIntMax(FilenameIndex, TranslationUnitFilenames.size(), in llvm's CoverageMappingReader). This means that the swift compiler is somehow generating an invalid index, although I don't see how this is possible.
1 parent a822e14 commit 1c7b124

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

test/SILGen/coverage_smoke.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: rdar://29591622
21
// RUN: rm -rf %t && mkdir -p %t
32
// RUN: %target-build-swift %s -profile-generate -profile-coverage-mapping -Xfrontend -disable-incremental-llvm-codegen -o %t/main
43
// RUN: env LLVM_PROFILE_FILE=%t/default.profraw %target-run %t/main

0 commit comments

Comments
 (0)