Skip to content

Commit 632c25a

Browse files
committed
lcov: Fix output files being created in / directory
When a warning is emitted by lcov before creating an output file, e.g. when a negative coverage count was found while combining tracefiles, lcov tries to create the output file in the root directory (/) instead of the current working directory. This is a result of lcov's warn handler calling a temp file cleanup routine that changes directories to / before trying to remove its temporary directory. Fix this by removing the temp cleanup call from the warn handler. Signed-off-by: Peter Oberparleiter <[email protected]>
1 parent e32aab1 commit 632c25a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

bin/lcov

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4250,7 +4250,6 @@ sub warn_handler($)
42504250
{
42514251
my ($msg) = @_;
42524252

4253-
temp_cleanup();
42544253
warn("$tool_name: $msg");
42554254
}
42564255

0 commit comments

Comments
 (0)