summaryrefslogtreecommitdiff
path: root/modules/xstrtoll-tests
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-01-23 11:52:44 +0100
committerJim Meyering <meyering@redhat.com>2010-01-25 12:04:15 +0100
commit99b7042563670fc4e315685f771d1708909ea3ec (patch)
treead5707b6c3db5fb165b43cca8be381085ce7271b /modules/xstrtoll-tests
parent0d92ff0717ae44fc7098f1f00aec634e5e79f2e9 (diff)
downloadgnulib-99b7042563670fc4e315685f771d1708909ea3ec.tar.gz
xstrtoll: new module
* modules/xstrtoll: New file. * MODULES.html.sh (Numeric conversion functions): Add xstrtoll. * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull. * lib/xstrtoll.c, lib/xstrtoull.c: New files. ./configure fails if you use this module and lack "long long". * modules/xstrtoll-tests: New module. * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files. * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the new init.sh-based test framework.
Diffstat (limited to 'modules/xstrtoll-tests')
-rw-r--r--modules/xstrtoll-tests17
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/xstrtoll-tests b/modules/xstrtoll-tests
new file mode 100644
index 0000000000..a1b0754cbc
--- /dev/null
+++ b/modules/xstrtoll-tests
@@ -0,0 +1,17 @@
+Files:
+tests/init.sh
+tests/test-xstrtol.c
+tests/test-xstrtoll.c
+tests/test-xstrtoull.c
+tests/test-xstrtoll.sh
+
+Depends-on:
+xstrtoll
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-xstrtoll.sh
+check_PROGRAMS += test-xstrtoll test-xstrtoull
+test_xstrtoll_LDADD = $(LDADD) $(LIBINTL)
+test_xstrtoull_LDADD = $(LDADD) $(LIBINTL)