]> Savannah Git Hosting - gnulib.git/commit
regex-tests: fix test and add debug output
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 25 Sep 2020 23:02:36 +0000 (16:02 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 25 Sep 2020 23:06:18 +0000 (16:06 -0700)
commit5f0a97fc5090aaf8a5e19224c87cfaeb9abec97e
tree9e0904b9d545fd7f10552d55779b2799e8699102
parent9682f18e98819a676c79f613f19e70c9413f2e5d
regex-tests: fix test and add debug output

Perhaps this will fix the recent grep test failure reported at:
https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/199
At least, the debug output should help narrow down the failure.
* tests/test-regex.c: Include stdarg.h, stdio.h.
(exit_status): New var.
(report_error): New function.
(main): Use it to report failures to stdout instead of merely
exiting with some nonzero status.  The status info alone isn’t
enough to do remote debugging.  In the new tr_TR.UTF-8 test, clear
regex before calling re_compile_pattern, fixing a portability bug.
ChangeLog
tests/test-regex.c