From fa351e010bc5b477a9117a60ee208336ecd55cb0 Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Tue, 26 Apr 2022 18:13:24 +0200 Subject: [PATCH] posix.cfg: Improved tests for socketpair() --- test/cfg/posix.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/cfg/posix.c b/test/cfg/posix.c index 807377f3e..df1164cb1 100644 --- a/test/cfg/posix.c +++ b/test/cfg/posix.c @@ -31,6 +31,13 @@ #include #include +int nullPointer_socketpair(int domain, int t, int protocol, int sv[2]) +{ + // cppcheck-suppress nullPointer + (void) socketpair(domain, t, protocol, NULL); + return socketpair(domain, t, protocol, sv); +} + void nullPointer_lcong48(unsigned short param[7]) { // cppcheck-suppress nullPointer