forked from OSchip/llvm-project
[asan] Better error message in coverage.
llvm-svn: 224762
This commit is contained in:
parent
6e27c6d450
commit
874b2bb228
|
@ -99,8 +99,8 @@ void CovUpdateMapping(uptr caller_pc) {
|
|||
internal_getpid());
|
||||
CHECK_LE(res, tmp_path.size());
|
||||
uptr map_fd = OpenFile(tmp_path.data(), true);
|
||||
if (internal_iserror(map_fd)) {
|
||||
Report(" Coverage: failed to open %s for writing\n", tmp_path.data());
|
||||
if (internal_iserror(map_fd, &err)) {
|
||||
Report(" Coverage: failed to open %s for writing: %d\n", tmp_path.data(), err);
|
||||
Die();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue