tests/unit/test_strncpy.c: Test STRNCPY()

Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
Alejandro Colomar
2023-11-26 06:48:18 -06:00
committed by Serge Hallyn
parent ce30dfe255
commit fe62fc48bf
2 changed files with 98 additions and 0 deletions
+13
View File
@@ -4,6 +4,7 @@ if HAVE_CMOCKA
TESTS = $(check_PROGRAMS)
check_PROGRAMS = \
test_strncpy \
test_strtcpy \
test_xasprintf
@@ -32,6 +33,18 @@ test_logind_LDADD = \
$(LIBSYSTEMD) \
$(NULL)
test_strncpy_SOURCES = \
test_strncpy.c \
$(NULL)
test_strncpy_CFLAGS = \
$(AM_FLAGS) \
$(NULL)
test_strncpy_LDFLAGS = \
$(NULL)
test_strncpy_LDADD = \
$(CMOCKA_LIBS) \
$(NULL)
test_strtcpy_SOURCES = \
../../lib/strtcpy.c \
test_strtcpy.c \