Commit Graph

23 Commits

Author SHA1 Message Date
Vedant Kumar
36f909114c Re-enable coverage smoke test (NFC)
There isn't a reason for it to be disabled.

It was disabled by this merge commit. I'll follow-up to see how we can
avoid this in the future.

commit 78b28243ff

    Merge remote-tracking branch 'origin/master' into master-next
2017-02-15 11:04:28 -08:00
Bob Wilson
78b28243ff Merge remote-tracking branch 'origin/master' into master-next 2017-01-03 14:22:59 -08:00
Vedant Kumar
a064157d99 [Coverage] Fix UB in use of the CoverageMappingWriter API
Passing {FileID} into the CoverageMappingWriter constructor causes UB.
The ArrayRef constructed from the initializer list becomes invalid once
the constructor returns, because the lifetime of the initializer list
expires. Use an alternate ArrayRef constructor which outlives the
CoverageMappingWriter instance.

This commit also re-reenables coverage_smoke.swift.

rdar://problem/29591622
2016-12-20 16:51:38 -08:00
Vedant Kumar
504fef74f8 Revert "Re-enable coverage_smoke.swift" 2016-12-14 11:39:18 -08:00
Vedant Kumar
1c7b124163 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.
2016-12-13 18:04:20 -08:00
Bob Wilson
deddf19aae Merge remote-tracking branch 'origin/master' into master-next 2016-12-13 10:23:03 -08:00
Xi Ge
e0e727921c [test] Disable SILGen/coverage_smoke.swift while investigating. (#6169) 2016-12-09 12:16:06 -08:00
Bob Wilson
c370d24c47 Merge remote-tracking branch 'origin/master' into master-next 2016-10-12 20:37:25 -07:00
Vedant Kumar
4150c4a2f6 [Coverage] Re-enable smoke test post stable-merge
Tweak the expected output so the line numbers are in the right location.
2016-09-12 13:22:46 -07:00
Michael Gottesman
7d12aaca2c Disable failing test. rdar://28221303. 2016-09-11 22:26:35 -07:00
Michael Gottesman
82cdcbe29f Disable coverage_smoke test as per my discussion with Vedant.
rdar://28221303
2016-09-08 23:43:09 -07:00
Michael Gottesman
b48b4d96fe Merge remote-tracking branch 'origin/master' into master-next 2016-09-07 15:35:07 -07:00
Vedant Kumar
609de86f94 [Coverage] Emit mappings for top-level code decls
Make sure that code in top-level decls gets decent coverage reporting.

rdar://problem/27874041
2016-09-07 11:49:22 -07:00
Dmitri Gribenko
55864d10cb Tests: use 'mkdir -p' 2016-09-02 21:36:45 -07:00
Michael Gottesman
98c1366235 [upstream-update] Update coverage_smoke.swift for LLVM svn r278152.
Thanks to Vedant Kumar for his help resolving this issue!
2016-08-31 11:32:01 -07:00
Dmitri Gribenko
d175b3b66d Migrate FileCheck to %FileCheck in tests 2016-08-10 23:52:02 -07:00
Vedant Kumar
640d91b31e [Coverage] Enable smoke test when testing with asan
This should be supported now that we're using an external build of
compiler-rt.
2016-06-01 15:44:22 -07:00
Vedant Kumar
cc8351cf0a [Coverage] Re-enable coverage smoke test 2016-05-17 13:41:50 -07:00
Michael Gottesman
6b3067b767 Disable this test for now until the branching model lands.
rdar://26081474
(cherry picked from commit 58187674cf5bcb453f2f265f6ebb9f854f584832)
2016-05-13 22:04:58 -07:00
Vedant Kumar
c5873f3683 [Coverage] Make ~ProfilerRAII restore the correct context
Swift permits function decls within function decls. ~ProfilerRAII would
destroy the current profiling context upon entering a nested function
decl instead of preserving it for later use. Fix the issue by recording
the correct context in ProfilerRAII.
2016-04-28 16:48:58 -07:00
Vedant Kumar
720167f6f1 [Coverage] Improve end-to-end test 2016-04-25 10:02:46 -07:00
Jordan Rose
2527f3c340 [test] XFAIL the coverage test under ASan.
We're not linking correctly for some reason. Filed rdar://problem/25626783
to look into it. (Not filed publicly because there's information from an
internal bot.)
2016-04-08 09:54:43 -07:00
Vedant Kumar
53f48f8d8b Hook compiler-rt up to the swift build system 2016-03-17 17:44:05 -07:00