Ignore debug line in code coverage

This commit is contained in:
Julian Kent 2021-01-22 17:26:21 +01:00 committed by Julian Kent
parent 4837316f9b
commit 977cf52322
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ int main()
printf("%s\n", output); // for debugging in case of failure printf("%s\n", output); // for debugging in case of failure
for (size_t i = 0; i < len; i++) { for (size_t i = 0; i < len; i++) {
if(buffer[i] != output[i]) { // for debugging in case of failure if(buffer[i] != output[i]) { // for debugging in case of failure
printf("%d: \"%c\" != \"%c\"", int(i), buffer[i], output[i]); printf("%d: \"%c\" != \"%c\"", int(i), buffer[i], output[i]); // LCOV_EXCL_LINE only print on failure
} }
TEST(buffer[i] == output[i]); TEST(buffer[i] == output[i]);
if (buffer[i] == '\0') { if (buffer[i] == '\0') {