test: annotate intentional static-analysis guards
CI / lint (pull_request) Successful in 2m9s
CI / sanitizers (address) (pull_request) Successful in 35s
CI / sanitizers (undefined) (pull_request) Successful in 35s
CI / fuzz-build (pull_request) Successful in 14s
CI / coverage (pull_request) Successful in 31s
CI / build-and-test (pull_request) Successful in 1m15s
CI / valgrind (pull_request) Successful in 32s
CI / lint (pull_request) Successful in 2m9s
CI / sanitizers (address) (pull_request) Successful in 35s
CI / sanitizers (undefined) (pull_request) Successful in 35s
CI / fuzz-build (pull_request) Successful in 14s
CI / coverage (pull_request) Successful in 31s
CI / build-and-test (pull_request) Successful in 1m15s
CI / valgrind (pull_request) Successful in 32s
This commit is contained in:
@@ -138,6 +138,7 @@ static void test_to_disk_does_not_follow_symlink() {
|
||||
FILE* fp = fopen(outside, "rb");
|
||||
char buf[16] = {0};
|
||||
EXPECT_NOT_NULL(fp);
|
||||
// cppcheck-suppress knownConditionTrueFalse
|
||||
if (!fp)
|
||||
return;
|
||||
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->receive_root_directory = str_dup("/dst");
|
||||
|
||||
// cppcheck-suppress constVariablePointer
|
||||
Queue* const q1 = queue_create(0, NULL);
|
||||
// cppcheck-suppress constVariablePointer
|
||||
Queue* const q2 = queue_create(0, NULL);
|
||||
EXPECT_NULL(q1);
|
||||
EXPECT_NULL(q2);
|
||||
|
||||
Reference in New Issue
Block a user