From 77a7c6a731acd4dea226b500c21dce17b2a94ece Mon Sep 17 00:00:00 2001 From: Assaf Gordon Date: Mon, 4 Jul 2016 19:03:06 -0400 Subject: tests: skip tests upon buggy mbrtowc implementations Sed tests purposefully use invalid non-utf8 multibyte sequences to test sed's handling of invalid input/program. Some implementations wrongly accept invalid sequences, causing false alarms. Add a test program to detect such buggy implementations and skip the tests if needed. See discussion in: http://lists.gnu.org/archive/html/sed-devel/2016-07/msg00005.html http://lists.gnu.org/archive/html/sed-devel/2016-07/msg00000.html http://lists.gnu.org/archive/html/sed-devel/2016-06/msg00031.html http://lists.gnu.org/archive/html/sed-devel/2016-06/msg00014.html * bootstrap.conf: Add gnulib's closeout module. * m4/.gitignore, lib/.gitignore, po/POTFILES.in: Adjust after adding closeout module. * testsuite/Makefile.am (check_PROGRAMS): Add new program. * testsuite/test-mbrtowc.c: New program. * testsuite/init.cfg (require_valid_ja_eucjp_locale_) (require_valid_ja_shiftjis_locale_): New functions. Call test-mbrtowc with known invalid multibyte sequences to ensure implementation is not buggy and rejects them; Skip test otherwise. * testsuite/invalid-mb-seq-UMR.sh: Use require_valid_ja_eucjp_locale_. * testsuite/mb-charclass-non-utf8.sh: Use require_valid_ja_shiftjis_locale_. --- m4/.gitignore | 3 +++ 1 file changed, 3 insertions(+) (limited to 'm4') diff --git a/m4/.gitignore b/m4/.gitignore index ac2c250..7ac433e 100644 --- a/m4/.gitignore +++ b/m4/.gitignore @@ -181,3 +181,6 @@ xstrndup.m4 /warnings.m4 /obstack.m4 /stdalign.m4 +/close-stream.m4 +/closeout.m4 +/fpending.m4 -- cgit v1.2.1