New upstream version 4.15.2
This commit is contained in:
@@ -6,7 +6,6 @@ TESTS = $(check_PROGRAMS)
|
||||
check_PROGRAMS = \
|
||||
test_adds \
|
||||
test_atoi_strtoi \
|
||||
test_atoi_strtou_noneg \
|
||||
test_chkname \
|
||||
test_sprintf \
|
||||
test_strncpy \
|
||||
@@ -48,19 +47,6 @@ test_atoi_strtoi_LDADD = \
|
||||
$(CMOCKA_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
test_atoi_strtou_noneg_SOURCES = \
|
||||
../../lib/atoi/strtou_noneg.c \
|
||||
test_atoi_strtou_noneg.c \
|
||||
$(NULL)
|
||||
test_atoi_strtou_noneg_CFLAGS = \
|
||||
$(AM_CFLAGS) \
|
||||
$(NULL)
|
||||
test_atoi_strtou_noneg_LDFLAGS = \
|
||||
$(NULL)
|
||||
test_atoi_strtou_noneg_LDADD = \
|
||||
$(CMOCKA_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
test_chkname_SOURCES = \
|
||||
../../lib/chkname.c \
|
||||
test_chkname.c \
|
||||
|
||||
+5
-83
@@ -89,7 +89,6 @@ build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
@HAVE_CMOCKA_TRUE@check_PROGRAMS = test_adds$(EXEEXT) \
|
||||
@HAVE_CMOCKA_TRUE@ test_atoi_strtoi$(EXEEXT) \
|
||||
@HAVE_CMOCKA_TRUE@ test_atoi_strtou_noneg$(EXEEXT) \
|
||||
@HAVE_CMOCKA_TRUE@ test_chkname$(EXEEXT) test_sprintf$(EXEEXT) \
|
||||
@HAVE_CMOCKA_TRUE@ test_strncpy$(EXEEXT) test_strtcpy$(EXEEXT) \
|
||||
@HAVE_CMOCKA_TRUE@ test_xasprintf$(EXEEXT) \
|
||||
@@ -143,17 +142,6 @@ test_atoi_strtoi_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
|
||||
$(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
|
||||
$(test_atoi_strtoi_CFLAGS) $(CFLAGS) \
|
||||
$(test_atoi_strtoi_LDFLAGS) $(LDFLAGS) -o $@
|
||||
am__test_atoi_strtou_noneg_SOURCES_DIST = \
|
||||
../../lib/atoi/strtou_noneg.c test_atoi_strtou_noneg.c
|
||||
@HAVE_CMOCKA_TRUE@am_test_atoi_strtou_noneg_OBJECTS = ../../lib/atoi/test_atoi_strtou_noneg-strtou_noneg.$(OBJEXT) \
|
||||
@HAVE_CMOCKA_TRUE@ test_atoi_strtou_noneg-test_atoi_strtou_noneg.$(OBJEXT)
|
||||
test_atoi_strtou_noneg_OBJECTS = $(am_test_atoi_strtou_noneg_OBJECTS)
|
||||
@HAVE_CMOCKA_TRUE@test_atoi_strtou_noneg_DEPENDENCIES = \
|
||||
@HAVE_CMOCKA_TRUE@ $(am__DEPENDENCIES_1)
|
||||
test_atoi_strtou_noneg_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
|
||||
$(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
|
||||
$(test_atoi_strtou_noneg_CFLAGS) $(CFLAGS) \
|
||||
$(test_atoi_strtou_noneg_LDFLAGS) $(LDFLAGS) -o $@
|
||||
am__test_chkname_SOURCES_DIST = ../../lib/chkname.c test_chkname.c
|
||||
@HAVE_CMOCKA_TRUE@am_test_chkname_OBJECTS = \
|
||||
@HAVE_CMOCKA_TRUE@ ../../lib/test_chkname-chkname.$(OBJEXT) \
|
||||
@@ -237,13 +225,11 @@ am__depfiles_remade = ../../lib/$(DEPDIR)/test_adds-adds.Po \
|
||||
../../lib/$(DEPDIR)/test_chkname-chkname.Po \
|
||||
../../lib/$(DEPDIR)/test_logind-logind.Po \
|
||||
../../lib/atoi/$(DEPDIR)/test_atoi_strtoi-strtoi.Po \
|
||||
../../lib/atoi/$(DEPDIR)/test_atoi_strtou_noneg-strtou_noneg.Po \
|
||||
../../lib/string/$(DEPDIR)/test_sprintf-sprintf.Po \
|
||||
../../lib/string/$(DEPDIR)/test_strtcpy-strtcpy.Po \
|
||||
../../lib/string/$(DEPDIR)/test_xasprintf-sprintf.Po \
|
||||
./$(DEPDIR)/test_adds-test_adds.Po \
|
||||
./$(DEPDIR)/test_atoi_strtoi-test_atoi_strtoi.Po \
|
||||
./$(DEPDIR)/test_atoi_strtou_noneg-test_atoi_strtou_noneg.Po \
|
||||
./$(DEPDIR)/test_chkname-test_chkname.Po \
|
||||
./$(DEPDIR)/test_logind-test_logind.Po \
|
||||
./$(DEPDIR)/test_sprintf-test_sprintf.Po \
|
||||
@@ -271,13 +257,12 @@ am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
|
||||
am__v_CCLD_0 = @echo " CCLD " $@;
|
||||
am__v_CCLD_1 =
|
||||
SOURCES = $(test_adds_SOURCES) $(test_atoi_strtoi_SOURCES) \
|
||||
$(test_atoi_strtou_noneg_SOURCES) $(test_chkname_SOURCES) \
|
||||
$(test_logind_SOURCES) $(test_sprintf_SOURCES) \
|
||||
$(test_strncpy_SOURCES) $(test_strtcpy_SOURCES) \
|
||||
$(test_xasprintf_SOURCES) $(test_zustr2stp_SOURCES)
|
||||
$(test_chkname_SOURCES) $(test_logind_SOURCES) \
|
||||
$(test_sprintf_SOURCES) $(test_strncpy_SOURCES) \
|
||||
$(test_strtcpy_SOURCES) $(test_xasprintf_SOURCES) \
|
||||
$(test_zustr2stp_SOURCES)
|
||||
DIST_SOURCES = $(am__test_adds_SOURCES_DIST) \
|
||||
$(am__test_atoi_strtoi_SOURCES_DIST) \
|
||||
$(am__test_atoi_strtou_noneg_SOURCES_DIST) \
|
||||
$(am__test_chkname_SOURCES_DIST) \
|
||||
$(am__test_logind_SOURCES_DIST) \
|
||||
$(am__test_sprintf_SOURCES_DIST) \
|
||||
@@ -546,6 +531,7 @@ EGREP = @EGREP@
|
||||
ETAGS = @ETAGS@
|
||||
EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
FILECMD = @FILECMD@
|
||||
GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
|
||||
GMSGFMT = @GMSGFMT@
|
||||
GMSGFMT_015 = @GMSGFMT_015@
|
||||
@@ -726,22 +712,6 @@ AM_CPPFLAGS = -I$(top_srcdir)/lib -I$(top_srcdir)
|
||||
@HAVE_CMOCKA_TRUE@ $(CMOCKA_LIBS) \
|
||||
@HAVE_CMOCKA_TRUE@ $(NULL)
|
||||
|
||||
@HAVE_CMOCKA_TRUE@test_atoi_strtou_noneg_SOURCES = \
|
||||
@HAVE_CMOCKA_TRUE@ ../../lib/atoi/strtou_noneg.c \
|
||||
@HAVE_CMOCKA_TRUE@ test_atoi_strtou_noneg.c \
|
||||
@HAVE_CMOCKA_TRUE@ $(NULL)
|
||||
|
||||
@HAVE_CMOCKA_TRUE@test_atoi_strtou_noneg_CFLAGS = \
|
||||
@HAVE_CMOCKA_TRUE@ $(AM_CFLAGS) \
|
||||
@HAVE_CMOCKA_TRUE@ $(NULL)
|
||||
|
||||
@HAVE_CMOCKA_TRUE@test_atoi_strtou_noneg_LDFLAGS = \
|
||||
@HAVE_CMOCKA_TRUE@ $(NULL)
|
||||
|
||||
@HAVE_CMOCKA_TRUE@test_atoi_strtou_noneg_LDADD = \
|
||||
@HAVE_CMOCKA_TRUE@ $(CMOCKA_LIBS) \
|
||||
@HAVE_CMOCKA_TRUE@ $(NULL)
|
||||
|
||||
@HAVE_CMOCKA_TRUE@test_chkname_SOURCES = \
|
||||
@HAVE_CMOCKA_TRUE@ ../../lib/chkname.c \
|
||||
@HAVE_CMOCKA_TRUE@ test_chkname.c \
|
||||
@@ -925,13 +895,6 @@ test_adds$(EXEEXT): $(test_adds_OBJECTS) $(test_adds_DEPENDENCIES) $(EXTRA_test_
|
||||
test_atoi_strtoi$(EXEEXT): $(test_atoi_strtoi_OBJECTS) $(test_atoi_strtoi_DEPENDENCIES) $(EXTRA_test_atoi_strtoi_DEPENDENCIES)
|
||||
@rm -f test_atoi_strtoi$(EXEEXT)
|
||||
$(AM_V_CCLD)$(test_atoi_strtoi_LINK) $(test_atoi_strtoi_OBJECTS) $(test_atoi_strtoi_LDADD) $(LIBS)
|
||||
../../lib/atoi/test_atoi_strtou_noneg-strtou_noneg.$(OBJEXT): \
|
||||
../../lib/atoi/$(am__dirstamp) \
|
||||
../../lib/atoi/$(DEPDIR)/$(am__dirstamp)
|
||||
|
||||
test_atoi_strtou_noneg$(EXEEXT): $(test_atoi_strtou_noneg_OBJECTS) $(test_atoi_strtou_noneg_DEPENDENCIES) $(EXTRA_test_atoi_strtou_noneg_DEPENDENCIES)
|
||||
@rm -f test_atoi_strtou_noneg$(EXEEXT)
|
||||
$(AM_V_CCLD)$(test_atoi_strtou_noneg_LINK) $(test_atoi_strtou_noneg_OBJECTS) $(test_atoi_strtou_noneg_LDADD) $(LIBS)
|
||||
../../lib/test_chkname-chkname.$(OBJEXT): ../../lib/$(am__dirstamp) \
|
||||
../../lib/$(DEPDIR)/$(am__dirstamp)
|
||||
|
||||
@@ -993,13 +956,11 @@ distclean-compile:
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@../../lib/$(DEPDIR)/test_chkname-chkname.Po@am__quote@ # am--include-marker
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@../../lib/$(DEPDIR)/test_logind-logind.Po@am__quote@ # am--include-marker
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@../../lib/atoi/$(DEPDIR)/test_atoi_strtoi-strtoi.Po@am__quote@ # am--include-marker
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@../../lib/atoi/$(DEPDIR)/test_atoi_strtou_noneg-strtou_noneg.Po@am__quote@ # am--include-marker
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@../../lib/string/$(DEPDIR)/test_sprintf-sprintf.Po@am__quote@ # am--include-marker
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@../../lib/string/$(DEPDIR)/test_strtcpy-strtcpy.Po@am__quote@ # am--include-marker
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@../../lib/string/$(DEPDIR)/test_xasprintf-sprintf.Po@am__quote@ # am--include-marker
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_adds-test_adds.Po@am__quote@ # am--include-marker
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_atoi_strtoi-test_atoi_strtoi.Po@am__quote@ # am--include-marker
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_atoi_strtou_noneg-test_atoi_strtou_noneg.Po@am__quote@ # am--include-marker
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_chkname-test_chkname.Po@am__quote@ # am--include-marker
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_logind-test_logind.Po@am__quote@ # am--include-marker
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_sprintf-test_sprintf.Po@am__quote@ # am--include-marker
|
||||
@@ -1094,34 +1055,6 @@ test_atoi_strtoi-test_atoi_strtoi.obj: test_atoi_strtoi.c
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_atoi_strtoi_CFLAGS) $(CFLAGS) -c -o test_atoi_strtoi-test_atoi_strtoi.obj `if test -f 'test_atoi_strtoi.c'; then $(CYGPATH_W) 'test_atoi_strtoi.c'; else $(CYGPATH_W) '$(srcdir)/test_atoi_strtoi.c'; fi`
|
||||
|
||||
../../lib/atoi/test_atoi_strtou_noneg-strtou_noneg.o: ../../lib/atoi/strtou_noneg.c
|
||||
@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_atoi_strtou_noneg_CFLAGS) $(CFLAGS) -MT ../../lib/atoi/test_atoi_strtou_noneg-strtou_noneg.o -MD -MP -MF ../../lib/atoi/$(DEPDIR)/test_atoi_strtou_noneg-strtou_noneg.Tpo -c -o ../../lib/atoi/test_atoi_strtou_noneg-strtou_noneg.o `test -f '../../lib/atoi/strtou_noneg.c' || echo '$(srcdir)/'`../../lib/atoi/strtou_noneg.c
|
||||
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) ../../lib/atoi/$(DEPDIR)/test_atoi_strtou_noneg-strtou_noneg.Tpo ../../lib/atoi/$(DEPDIR)/test_atoi_strtou_noneg-strtou_noneg.Po
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../../lib/atoi/strtou_noneg.c' object='../../lib/atoi/test_atoi_strtou_noneg-strtou_noneg.o' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_atoi_strtou_noneg_CFLAGS) $(CFLAGS) -c -o ../../lib/atoi/test_atoi_strtou_noneg-strtou_noneg.o `test -f '../../lib/atoi/strtou_noneg.c' || echo '$(srcdir)/'`../../lib/atoi/strtou_noneg.c
|
||||
|
||||
../../lib/atoi/test_atoi_strtou_noneg-strtou_noneg.obj: ../../lib/atoi/strtou_noneg.c
|
||||
@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_atoi_strtou_noneg_CFLAGS) $(CFLAGS) -MT ../../lib/atoi/test_atoi_strtou_noneg-strtou_noneg.obj -MD -MP -MF ../../lib/atoi/$(DEPDIR)/test_atoi_strtou_noneg-strtou_noneg.Tpo -c -o ../../lib/atoi/test_atoi_strtou_noneg-strtou_noneg.obj `if test -f '../../lib/atoi/strtou_noneg.c'; then $(CYGPATH_W) '../../lib/atoi/strtou_noneg.c'; else $(CYGPATH_W) '$(srcdir)/../../lib/atoi/strtou_noneg.c'; fi`
|
||||
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) ../../lib/atoi/$(DEPDIR)/test_atoi_strtou_noneg-strtou_noneg.Tpo ../../lib/atoi/$(DEPDIR)/test_atoi_strtou_noneg-strtou_noneg.Po
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../../lib/atoi/strtou_noneg.c' object='../../lib/atoi/test_atoi_strtou_noneg-strtou_noneg.obj' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_atoi_strtou_noneg_CFLAGS) $(CFLAGS) -c -o ../../lib/atoi/test_atoi_strtou_noneg-strtou_noneg.obj `if test -f '../../lib/atoi/strtou_noneg.c'; then $(CYGPATH_W) '../../lib/atoi/strtou_noneg.c'; else $(CYGPATH_W) '$(srcdir)/../../lib/atoi/strtou_noneg.c'; fi`
|
||||
|
||||
test_atoi_strtou_noneg-test_atoi_strtou_noneg.o: test_atoi_strtou_noneg.c
|
||||
@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_atoi_strtou_noneg_CFLAGS) $(CFLAGS) -MT test_atoi_strtou_noneg-test_atoi_strtou_noneg.o -MD -MP -MF $(DEPDIR)/test_atoi_strtou_noneg-test_atoi_strtou_noneg.Tpo -c -o test_atoi_strtou_noneg-test_atoi_strtou_noneg.o `test -f 'test_atoi_strtou_noneg.c' || echo '$(srcdir)/'`test_atoi_strtou_noneg.c
|
||||
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_atoi_strtou_noneg-test_atoi_strtou_noneg.Tpo $(DEPDIR)/test_atoi_strtou_noneg-test_atoi_strtou_noneg.Po
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='test_atoi_strtou_noneg.c' object='test_atoi_strtou_noneg-test_atoi_strtou_noneg.o' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_atoi_strtou_noneg_CFLAGS) $(CFLAGS) -c -o test_atoi_strtou_noneg-test_atoi_strtou_noneg.o `test -f 'test_atoi_strtou_noneg.c' || echo '$(srcdir)/'`test_atoi_strtou_noneg.c
|
||||
|
||||
test_atoi_strtou_noneg-test_atoi_strtou_noneg.obj: test_atoi_strtou_noneg.c
|
||||
@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_atoi_strtou_noneg_CFLAGS) $(CFLAGS) -MT test_atoi_strtou_noneg-test_atoi_strtou_noneg.obj -MD -MP -MF $(DEPDIR)/test_atoi_strtou_noneg-test_atoi_strtou_noneg.Tpo -c -o test_atoi_strtou_noneg-test_atoi_strtou_noneg.obj `if test -f 'test_atoi_strtou_noneg.c'; then $(CYGPATH_W) 'test_atoi_strtou_noneg.c'; else $(CYGPATH_W) '$(srcdir)/test_atoi_strtou_noneg.c'; fi`
|
||||
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_atoi_strtou_noneg-test_atoi_strtou_noneg.Tpo $(DEPDIR)/test_atoi_strtou_noneg-test_atoi_strtou_noneg.Po
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='test_atoi_strtou_noneg.c' object='test_atoi_strtou_noneg-test_atoi_strtou_noneg.obj' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_atoi_strtou_noneg_CFLAGS) $(CFLAGS) -c -o test_atoi_strtou_noneg-test_atoi_strtou_noneg.obj `if test -f 'test_atoi_strtou_noneg.c'; then $(CYGPATH_W) 'test_atoi_strtou_noneg.c'; else $(CYGPATH_W) '$(srcdir)/test_atoi_strtou_noneg.c'; fi`
|
||||
|
||||
../../lib/test_chkname-chkname.o: ../../lib/chkname.c
|
||||
@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_chkname_CFLAGS) $(CFLAGS) -MT ../../lib/test_chkname-chkname.o -MD -MP -MF ../../lib/$(DEPDIR)/test_chkname-chkname.Tpo -c -o ../../lib/test_chkname-chkname.o `test -f '../../lib/chkname.c' || echo '$(srcdir)/'`../../lib/chkname.c
|
||||
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) ../../lib/$(DEPDIR)/test_chkname-chkname.Tpo ../../lib/$(DEPDIR)/test_chkname-chkname.Po
|
||||
@@ -1503,13 +1436,6 @@ test_atoi_strtoi.log: test_atoi_strtoi$(EXEEXT)
|
||||
--log-file $$b.log --trs-file $$b.trs \
|
||||
$(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
|
||||
"$$tst" $(AM_TESTS_FD_REDIRECT)
|
||||
test_atoi_strtou_noneg.log: test_atoi_strtou_noneg$(EXEEXT)
|
||||
@p='test_atoi_strtou_noneg$(EXEEXT)'; \
|
||||
b='test_atoi_strtou_noneg'; \
|
||||
$(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
|
||||
--log-file $$b.log --trs-file $$b.trs \
|
||||
$(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
|
||||
"$$tst" $(AM_TESTS_FD_REDIRECT)
|
||||
test_chkname.log: test_chkname$(EXEEXT)
|
||||
@p='test_chkname$(EXEEXT)'; \
|
||||
b='test_chkname'; \
|
||||
@@ -1661,13 +1587,11 @@ distclean: distclean-am
|
||||
-rm -f ../../lib/$(DEPDIR)/test_chkname-chkname.Po
|
||||
-rm -f ../../lib/$(DEPDIR)/test_logind-logind.Po
|
||||
-rm -f ../../lib/atoi/$(DEPDIR)/test_atoi_strtoi-strtoi.Po
|
||||
-rm -f ../../lib/atoi/$(DEPDIR)/test_atoi_strtou_noneg-strtou_noneg.Po
|
||||
-rm -f ../../lib/string/$(DEPDIR)/test_sprintf-sprintf.Po
|
||||
-rm -f ../../lib/string/$(DEPDIR)/test_strtcpy-strtcpy.Po
|
||||
-rm -f ../../lib/string/$(DEPDIR)/test_xasprintf-sprintf.Po
|
||||
-rm -f ./$(DEPDIR)/test_adds-test_adds.Po
|
||||
-rm -f ./$(DEPDIR)/test_atoi_strtoi-test_atoi_strtoi.Po
|
||||
-rm -f ./$(DEPDIR)/test_atoi_strtou_noneg-test_atoi_strtou_noneg.Po
|
||||
-rm -f ./$(DEPDIR)/test_chkname-test_chkname.Po
|
||||
-rm -f ./$(DEPDIR)/test_logind-test_logind.Po
|
||||
-rm -f ./$(DEPDIR)/test_sprintf-test_sprintf.Po
|
||||
@@ -1724,13 +1648,11 @@ maintainer-clean: maintainer-clean-am
|
||||
-rm -f ../../lib/$(DEPDIR)/test_chkname-chkname.Po
|
||||
-rm -f ../../lib/$(DEPDIR)/test_logind-logind.Po
|
||||
-rm -f ../../lib/atoi/$(DEPDIR)/test_atoi_strtoi-strtoi.Po
|
||||
-rm -f ../../lib/atoi/$(DEPDIR)/test_atoi_strtou_noneg-strtou_noneg.Po
|
||||
-rm -f ../../lib/string/$(DEPDIR)/test_sprintf-sprintf.Po
|
||||
-rm -f ../../lib/string/$(DEPDIR)/test_strtcpy-strtcpy.Po
|
||||
-rm -f ../../lib/string/$(DEPDIR)/test_xasprintf-sprintf.Po
|
||||
-rm -f ./$(DEPDIR)/test_adds-test_adds.Po
|
||||
-rm -f ./$(DEPDIR)/test_atoi_strtoi-test_atoi_strtoi.Po
|
||||
-rm -f ./$(DEPDIR)/test_atoi_strtou_noneg-test_atoi_strtou_noneg.Po
|
||||
-rm -f ./$(DEPDIR)/test_chkname-test_chkname.Po
|
||||
-rm -f ./$(DEPDIR)/test_logind-test_logind.Po
|
||||
-rm -f ./$(DEPDIR)/test_sprintf-test_sprintf.Po
|
||||
|
||||
@@ -1,76 +0,0 @@
|
||||
// SPDX-FileCopyrightText: 2023-2024, Alejandro Colomar <alx@kernel.org>
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
|
||||
#include <errno.h>
|
||||
#include <limits.h>
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <stdarg.h> // Required by <cmocka.h>
|
||||
#include <stddef.h> // Required by <cmocka.h>
|
||||
#include <setjmp.h> // Required by <cmocka.h>
|
||||
#include <stdint.h> // Required by <cmocka.h>
|
||||
#include <cmocka.h>
|
||||
|
||||
#include "atoi/strtou_noneg.h"
|
||||
|
||||
|
||||
static void test_strtoul_noneg(void **state);
|
||||
static void test_strtoull_noneg(void **state);
|
||||
|
||||
|
||||
int
|
||||
main(void)
|
||||
{
|
||||
const struct CMUnitTest tests[] = {
|
||||
cmocka_unit_test(test_strtoul_noneg),
|
||||
cmocka_unit_test(test_strtoull_noneg),
|
||||
};
|
||||
|
||||
return cmocka_run_group_tests(tests, NULL, NULL);
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
test_strtoul_noneg(void **state)
|
||||
{
|
||||
errno = 0;
|
||||
assert_true(strtoul_noneg("42", NULL, 0) == 42);
|
||||
assert_true(errno == 0);
|
||||
|
||||
assert_true(strtoul_noneg("-1", NULL, 0) == 0);
|
||||
assert_true(errno == ERANGE);
|
||||
errno = 0;
|
||||
assert_true(strtoul_noneg("-3", NULL, 0) == 0);
|
||||
assert_true(errno == ERANGE);
|
||||
errno = 0;
|
||||
assert_true(strtoul_noneg("-0xFFFFFFFFFFFFFFFF", NULL, 0) == 0);
|
||||
assert_true(errno == ERANGE);
|
||||
|
||||
errno = 0;
|
||||
assert_true(strtoul_noneg("-0x10000000000000000", NULL, 0) == 0);
|
||||
assert_true(errno == ERANGE);
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
test_strtoull_noneg(void **state)
|
||||
{
|
||||
errno = 0;
|
||||
assert_true(strtoull_noneg("42", NULL, 0) == 42);
|
||||
assert_true(errno == 0);
|
||||
|
||||
assert_true(strtoull_noneg("-1", NULL, 0) == 0);
|
||||
assert_true(errno == ERANGE);
|
||||
errno = 0;
|
||||
assert_true(strtoull_noneg("-3", NULL, 0) == 0);
|
||||
assert_true(errno == ERANGE);
|
||||
errno = 0;
|
||||
assert_true(strtoull_noneg("-0xFFFFFFFFFFFFFFFF", NULL, 0) == 0);
|
||||
assert_true(errno == ERANGE);
|
||||
|
||||
errno = 0;
|
||||
assert_true(strtoull_noneg("-0x10000000000000000", NULL, 0) == 0);
|
||||
assert_true(errno == ERANGE);
|
||||
}
|
||||
Reference in New Issue
Block a user