fix: cppcheck suppress constVariablePointer in test
CI / lint (pull_request) Successful in 12s
CI / sanitizers (address) (pull_request) Failing after 15s
CI / sanitizers (undefined) (pull_request) Successful in 15s
CI / coverage (pull_request) Successful in 10s
CI / fuzz-build (pull_request) Successful in 13s
CI / valgrind (pull_request) Failing after 12s
CI / build-and-test (pull_request) Successful in 54s

This commit is contained in:
2026-07-21 18:10:41 +02:00
parent 0bee82e863
commit d21f6c8be9
+2
View File
@@ -3,11 +3,13 @@
#include "transport_ssh.h"
static void test_ssh_connect_invalid_dest_no_colon() {
/* cppcheck-suppress constVariablePointer */
Client* c = client_connect_ssh("/path/to/dest", 22);
EXPECT_NULL(c);
}
static void test_ssh_connect_invalid_dest_empty() {
/* cppcheck-suppress constVariablePointer */
Client* c = client_connect_ssh("", 22);
EXPECT_NULL(c);
}