diff options
Diffstat (limited to 'test/regex')
-rw-r--r-- | test/regex/tst-regex2.c | 4 | ||||
-rw-r--r-- | test/regex/tst-regexloc.c | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/test/regex/tst-regex2.c b/test/regex/tst-regex2.c index bb47d64..5ed221c 100644 --- a/test/regex/tst-regex2.c +++ b/test/regex/tst-regex2.c @@ -15,6 +15,7 @@ static int do_test(void) { +#if defined(__GLIBC__) || defined(__UCLIBC__) static const char *pat[] = { ".?.?.?.?.?.?.?Log\\.13", "(.?)(.?)(.?)(.?)(.?)(.?)(.?)Log\\.13", @@ -243,6 +244,9 @@ do_test(void) } } return exitcode; +#else + return 23; +#endif } #define TIMEOUT 100 diff --git a/test/regex/tst-regexloc.c b/test/regex/tst-regexloc.c index d862678..e8783f0 100644 --- a/test/regex/tst-regexloc.c +++ b/test/regex/tst-regexloc.c @@ -25,7 +25,7 @@ main (int argc, char *argv[]) { /* If uclibc has extended locale, or if it's a host build * (assuming host libc always has locale): */ -#if defined __UCLIBC_HAS_XLOCALE__ || !defined __UCLIBC__ +#if defined __UCLIBC_HAS_XLOCALE__ || (defined(__GLIBC__) && !defined __UCLIBC__) regex_t re; regmatch_t mat[1]; int exitcode = 1; @@ -47,7 +47,6 @@ main (int argc, char *argv[]) return exitcode; #else - puts("Test requires locale; skipping"); - return 0; + return 23; #endif } |