mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
tests: Resolve Coverity DEADCODE
Coverity complains that the various checks for autoincrement and changed variables are DEADCODE - seems to me to be a false positive - so mark it. Signed-off-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
2676903fc0
commit
a893b20eed
@ -162,10 +162,12 @@ testStrdup(const void *data ATTRIBUTE_UNUSED)
|
|||||||
virFilePrintf(stderr, "unexpected strdup result %d, expected 1\n", value);
|
virFilePrintf(stderr, "unexpected strdup result %d, expected 1\n", value);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
/* coverity[dead_error_begin] */
|
||||||
if (i != 1) {
|
if (i != 1) {
|
||||||
virFilePrintf(stderr, "unexpected side effects i=%zu, expected 1\n", i);
|
virFilePrintf(stderr, "unexpected side effects i=%zu, expected 1\n", i);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
/* coverity[dead_error_begin] */
|
||||||
if (j != 1) {
|
if (j != 1) {
|
||||||
virFilePrintf(stderr, "unexpected side effects j=%zu, expected 1\n", j);
|
virFilePrintf(stderr, "unexpected side effects j=%zu, expected 1\n", j);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
@ -182,14 +184,17 @@ testStrdup(const void *data ATTRIBUTE_UNUSED)
|
|||||||
virFilePrintf(stderr, "unexpected strdup result %d, expected 0\n", value);
|
virFilePrintf(stderr, "unexpected strdup result %d, expected 0\n", value);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
/* coverity[dead_error_begin] */
|
||||||
if (i != 2) {
|
if (i != 2) {
|
||||||
virFilePrintf(stderr, "unexpected side effects i=%zu, expected 2\n", i);
|
virFilePrintf(stderr, "unexpected side effects i=%zu, expected 2\n", i);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
/* coverity[dead_error_begin] */
|
||||||
if (j != 2) {
|
if (j != 2) {
|
||||||
virFilePrintf(stderr, "unexpected side effects j=%zu, expected 2\n", j);
|
virFilePrintf(stderr, "unexpected side effects j=%zu, expected 2\n", j);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
/* coverity[dead_error_begin] */
|
||||||
if (k != 1) {
|
if (k != 1) {
|
||||||
virFilePrintf(stderr, "unexpected side effects k=%zu, expected 1\n", k);
|
virFilePrintf(stderr, "unexpected side effects k=%zu, expected 1\n", k);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
Loading…
Reference in New Issue
Block a user