mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-29 03:36:07 +08:00
Ignore debug line in code coverage
This commit is contained in:
@@ -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') {
|
||||||
|
|||||||
Reference in New Issue
Block a user