summaryrefslogtreecommitdiff
path: root/modules/ffs-tests
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2011-07-11 17:05:34 -0600
committerEric Blake <eblake@redhat.com>2011-07-11 17:18:25 -0600
commita918da4d61d28be61a12605c9d35e2cf3966d866 (patch)
tree551dbebe9645bf51d4de6c7828bcebffca92ae4e /modules/ffs-tests
parent00a829e20e9bdb52d1b68357669ea248ed6661f1 (diff)
downloadgnulib-a918da4d61d28be61a12605c9d35e2cf3966d866.tar.gz
ffs: new module
Libvirt wants to use ffs() to avoid dragging in -lm for log2(). * modules/ffs: New file. * m4/ffs.m4: Likewise. * lib/ffs.c: Likewise. * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default. * modules/strings (Makefile.am): Substitute witness. (Depends-on): Add c++defs. * lib/strings.in.h (ffs): Declare. * modules/ffs-tests: New test file. * tests/test-ffs.c: Test new module. * MODULES.html.sh (Integer arithmetic functions): Mention it. * doc/posix-functions/ffs.texi (ffs): Likewise. Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'modules/ffs-tests')
-rw-r--r--modules/ffs-tests12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/ffs-tests b/modules/ffs-tests
new file mode 100644
index 0000000000..78a3973f31
--- /dev/null
+++ b/modules/ffs-tests
@@ -0,0 +1,12 @@
+Files:
+tests/test-ffs.c
+tests/macros.h
+tests/signature.h
+
+Depends-on:
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-ffs
+check_PROGRAMS += test-ffs