]> git.ipfire.org Git - thirdparty/openvpn.git/commit
test_networking: use appropriate assert helpers
authorAntonio Quartulli <antonio@mandelbit.com>
Mon, 3 Nov 2025 14:58:37 +0000 (15:58 +0100)
committerGert Doering <gert@greenie.muc.de>
Mon, 3 Nov 2025 15:31:59 +0000 (16:31 +0100)
commit21b943734f1911a158b7b465d11a04bb6de7f1a8
tree0585e2a7b061d9af2077b99c9b7fcf410e9e6a78
parenta3d8c40260930ab82ca5d9d71796a7763e74a03d
test_networking: use appropriate assert helpers

In all unit tests we rely on CMocka's provided assert helpers.

However, test_networking.c was still on the default assert() call,
which we try to avoid in favour of more appropriate helpers.

Substitute them all with assert_*() from CMocka.

Change-Id: Ie153b3d5bf19200f225cd09131de8583645110be
Reported-by: Marc Heuse <marc@srlabs.de>
Signed-off-by: Antonio Quartulli <antonio@mandelbit.com>
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1342
Message-Id: <20251103145842.22969-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg34155.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
tests/unit_tests/openvpn/test_networking.c