0

I tried to remove coverage data on my test driver file "test.c". Below is what I was using after reading some similar questions in SO.

$ lcov --remove test.gcda -c -d . -o a.info --rc lcov_branch_coverage=1 

but I got an error below. Can anyone help?

lcov: ERROR: only one of -z, -c, -a, -e, -r, -l, --diff or --summary allowed!
Use lcov --help to get usage information
zell
  • 9,830
  • 10
  • 62
  • 115

1 Answers1

2

-r is the same as --remove. And the error message says that you cannot use -r and -c at the same time. Remove the -c parameter.

klutt
  • 30,332
  • 17
  • 55
  • 95
  • Problem solved. Thanks. I figured out lcov --remove operates on .info files instead of .gcda files. – zell Jul 05 '19 at 09:05