diff options
author | Paolo Bonzini <bonzini@gnu.org> | 2004-11-03 08:24:20 +0000 |
---|---|---|
committer | Paolo Bonzini <bonzini@gnu.org> | 2008-01-09 16:10:46 +0100 |
commit | fdf570a5964e25f83529efc095ae797e35554a18 (patch) | |
tree | 8fa6e2e6642c149bd095bd574335cbe1da743911 /testsuite/bug-regex9.c | |
parent | 8219cef2eb7e825d414a46639a3c1123ba0f7fa5 (diff) | |
download | sed-fdf570a5964e25f83529efc095ae797e35554a18.tar.gz |
always enable regex tests when included regex is used
2004-11-03 Paolo Bonzini <bonzini@gnu
* bug-regex11.c: Improve portability.
* bug-regex12.c: Improve portability.
* bug-regex13.c: Improve portability.
* bug-regex14.c: Improve portability.
* bug-regex21.c: Improve portability.
* bug-regex9.c: Improve portability.
* tst-boost.c: Improve portability.
* tst-pcre.c: Improve portability.
* tst-regex.c: Improve portability.
* tst-rxspencer.c: Improve portability.
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-9
Diffstat (limited to 'testsuite/bug-regex9.c')
-rw-r--r-- | testsuite/bug-regex9.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/bug-regex9.c b/testsuite/bug-regex9.c index 5a32668..4ddc0e1 100644 --- a/testsuite/bug-regex9.c +++ b/testsuite/bug-regex9.c @@ -18,8 +18,12 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ +#include "config.h" + #include <sys/types.h> +#ifdef HAVE_MCHECK_H #include <mcheck.h> +#endif #include <regex.h> #include <stdio.h> #include <stdlib.h> @@ -34,7 +38,9 @@ main (void) regmatch_t rm[2]; int n; +#ifdef HAVE_MCHECK_H mtrace (); +#endif n = regcomp (&re, "^#! */.*/(k|ba||pdk|z)sh", REG_EXTENDED); if (n != 0) |