fix: complete issues #201-#206 remediation #208
@@ -138,6 +138,7 @@ static void test_to_disk_does_not_follow_symlink() {
|
|||||||
FILE* fp = fopen(outside, "rb");
|
FILE* fp = fopen(outside, "rb");
|
||||||
char buf[16] = {0};
|
char buf[16] = {0};
|
||||||
EXPECT_NOT_NULL(fp);
|
EXPECT_NOT_NULL(fp);
|
||||||
|
// cppcheck-suppress knownConditionTrueFalse
|
||||||
if (!fp)
|
if (!fp)
|
||||||
return;
|
return;
|
||||||
size_t read_count = fread(buf, 1, sizeof(buf) - 1, fp);
|
size_t read_count = fread(buf, 1, sizeof(buf) - 1, fp);
|
||||||
|
|||||||
@@ -91,7 +91,9 @@ static void test_sender_zero_capacity() {
|
|||||||
cfg->send_directory = str_dup("/src");
|
cfg->send_directory = str_dup("/src");
|
||||||
cfg->receive_root_directory = str_dup("/dst");
|
cfg->receive_root_directory = str_dup("/dst");
|
||||||
|
|
||||||
|
// cppcheck-suppress constVariablePointer
|
||||||
Queue* const q1 = queue_create(0, NULL);
|
Queue* const q1 = queue_create(0, NULL);
|
||||||
|
// cppcheck-suppress constVariablePointer
|
||||||
Queue* const q2 = queue_create(0, NULL);
|
Queue* const q2 = queue_create(0, NULL);
|
||||||
EXPECT_NULL(q1);
|
EXPECT_NULL(q1);
|
||||||
EXPECT_NULL(q2);
|
EXPECT_NULL(q2);
|
||||||
|
|||||||
Reference in New Issue
Block a user