aboutsummaryrefslogtreecommitdiff
path: root/posix/runptests.c
diff options
context:
space:
mode:
Diffstat (limited to 'posix/runptests.c')
-rw-r--r--posix/runptests.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/posix/runptests.c b/posix/runptests.c
index b1eabb9ebd..fcea5b342a 100644
--- a/posix/runptests.c
+++ b/posix/runptests.c
@@ -63,8 +63,8 @@ main (int argc, char *argv[])
err = regcomp (&re, tests[cnt].reg, tests[cnt].options);
if (err != 0)
{
- if (tests[cnt].start == -1)
- puts ("failed, OK");
+ if (tests[cnt].start == -2)
+ puts ("compiling failed, OK");
else
{
char buf[100];
@@ -75,6 +75,12 @@ main (int argc, char *argv[])
continue;
}
+ else if (tests[cnt].start == -2)
+ {
+ puts ("compiling suceeds, FAIL");
+ errors++;
+ continue;
+ }
/* Run the actual test. */
err = regexec (&re, tests[cnt].str, 20, match, 0);