summaryrefslogtreecommitdiff
path: root/modules/vsnprintf-posix-tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2007-04-29 15:40:30 +0000
committerBruno Haible <bruno@clisp.org>2007-04-29 15:40:30 +0000
commitf227e78a14b99482c7b12e6f4d4b3cd96f13400e (patch)
tree7d7f109457aeb0826cab06b94c661f8eaf002869 /modules/vsnprintf-posix-tests
parentb7143ceeb4f48c6953f41c35746efd30e2b771da (diff)
downloadgnulib-f227e78a14b99482c7b12e6f4d4b3cd96f13400e.tar.gz
Guard against vsnprintf implementations that mishandle a size=0 argument.
Diffstat (limited to 'modules/vsnprintf-posix-tests')
-rw-r--r--modules/vsnprintf-posix-tests7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/vsnprintf-posix-tests b/modules/vsnprintf-posix-tests
index 9f7fdff2f9..446ffd5090 100644
--- a/modules/vsnprintf-posix-tests
+++ b/modules/vsnprintf-posix-tests
@@ -1,14 +1,17 @@
Files:
tests/test-vsnprintf-posix.c
tests/test-snprintf-posix.h
+tests/test-vsnprintf.c
Depends-on:
stdint
configure.ac:
+AC_DEFINE([CHECK_VSNPRINTF_POSIX], 1,
+ [Define to 1 for strict checking in test-vsnprintf.c.])
Makefile.am:
-TESTS += test-vsnprintf-posix
-check_PROGRAMS += test-vsnprintf-posix
+TESTS += test-vsnprintf-posix test-vsnprintf
+check_PROGRAMS += test-vsnprintf-posix test-vsnprintf
EXTRA_DIST += test-snprintf-posix.h