lib/string/sprintf/, lib/, src/, tests/: Move all sprintf(3)-like APIs to a subdirectory
And have a separate file for each pair of APIs. Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
committed by
Serge Hallyn
parent
89e4be3957
commit
22272347b6
@@ -7,7 +7,7 @@ check_PROGRAMS = \
|
||||
test_adds \
|
||||
test_atoi_strtoi \
|
||||
test_chkname \
|
||||
test_sprintf \
|
||||
test_snprintf \
|
||||
test_strncpy \
|
||||
test_strtcpy \
|
||||
test_typetraits \
|
||||
@@ -78,16 +78,16 @@ test_logind_LDADD = \
|
||||
$(LIBSYSTEMD) \
|
||||
$(NULL)
|
||||
|
||||
test_sprintf_SOURCES = \
|
||||
../../lib/string/sprintf.c \
|
||||
test_sprintf.c \
|
||||
test_snprintf_SOURCES = \
|
||||
../../lib/string/sprintf/snprintf.c \
|
||||
test_snprintf.c \
|
||||
$(NULL)
|
||||
test_sprintf_CFLAGS = \
|
||||
test_snprintf_CFLAGS = \
|
||||
$(AM_CFLAGS) \
|
||||
$(NULL)
|
||||
test_sprintf_LDFLAGS = \
|
||||
test_snprintf_LDFLAGS = \
|
||||
$(NULL)
|
||||
test_sprintf_LDADD = \
|
||||
test_snprintf_LDADD = \
|
||||
$(CMOCKA_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
@@ -129,7 +129,7 @@ test_typetraits_LDADD = \
|
||||
$(NULL)
|
||||
|
||||
test_xasprintf_SOURCES = \
|
||||
../../lib/string/sprintf.c \
|
||||
../../lib/string/sprintf/xasprintf.c \
|
||||
test_xasprintf.c \
|
||||
$(NULL)
|
||||
test_xasprintf_CFLAGS = \
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include <cmocka.h>
|
||||
|
||||
#include "sizeof.h"
|
||||
#include "string/sprintf.h"
|
||||
#include "string/sprintf/snprintf.h"
|
||||
|
||||
|
||||
static void test_SNPRINTF_trunc(void **state);
|
||||
@@ -16,7 +16,7 @@
|
||||
#include <stdint.h> // Required by <cmocka.h>
|
||||
#include <cmocka.h>
|
||||
|
||||
#include "string/sprintf.h"
|
||||
#include "string/sprintf/xasprintf.h"
|
||||
|
||||
|
||||
#define assert_unreachable() assert_true(0)
|
||||
|
||||
Reference in New Issue
Block a user