diff options
author | Assaf Gordon <assafgordon@gmail.com> | 2016-07-04 19:03:06 -0400 |
---|---|---|
committer | Assaf Gordon <assafgordon@gmail.com> | 2016-07-06 20:29:07 -0400 |
commit | 77a7c6a731acd4dea226b500c21dce17b2a94ece (patch) | |
tree | 4d4992fbf3624086b6a1daad6d9c594a621605be /m4 | |
parent | 0052daf1e5651c4772d75b595dfc714e0e20587e (diff) | |
download | sed-77a7c6a731acd4dea226b500c21dce17b2a94ece.tar.gz |
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_.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/.gitignore | 3 |
1 files changed, 3 insertions, 0 deletions
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 |