summaryrefslogtreecommitdiff
path: root/modules/unistr
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2010-01-10 23:36:40 +0100
committerBruno Haible <bruno@clisp.org>2010-01-10 23:36:40 +0100
commit603316688fc3fccda9bc77b0e6fc2cc485ff07b5 (patch)
treefe2a6b2314f925016448a4abfa7e9b55543c5d3f /modules/unistr
parent7181bcb1f4e217aa247ea299ac6a16a670954108 (diff)
downloadgnulib-603316688fc3fccda9bc77b0e6fc2cc485ff07b5.tar.gz
Tests for module 'unistr/u16-strncpy'.
Diffstat (limited to 'modules/unistr')
-rw-r--r--modules/unistr/u16-strncpy-tests20
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/unistr/u16-strncpy-tests b/modules/unistr/u16-strncpy-tests
new file mode 100644
index 0000000000..dcdf78cdfa
--- /dev/null
+++ b/modules/unistr/u16-strncpy-tests
@@ -0,0 +1,20 @@
+Files:
+tests/unistr/test-u16-strncpy.c
+tests/unistr/test-strncpy.h
+tests/zerosize-ptr.h
+tests/macros.h
+m4/mmap-anon.m4
+
+Depends-on:
+extensions
+getpagesize
+
+configure.ac:
+gl_FUNC_MMAP_ANON
+AC_CHECK_HEADERS_ONCE([sys/mman.h])
+AC_CHECK_FUNCS_ONCE([mprotect])
+
+Makefile.am:
+TESTS += test-u16-strncpy
+check_PROGRAMS += test-u16-strncpy
+test_u16_strncpy_SOURCES = unistr/test-u16-strncpy.c