Testregex returned 0 even when some sub-tests
inside the testregex failed. Now it returns error
count.
Signed-off-by: Vlad Zakharov <vzakhar(a)synopsys.com>
---
test/regex/testregex.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/regex/testregex.c b/test/regex/testregex.c
index 993ac26..d18761d 100644
--- a/test/regex/testregex.c
+++ b/test/regex/testregex.c
@@ -2115,7 +2115,7 @@ old_main(int unused_param_argc, char** argv)
if (fp != stdin)
fclose(fp);
}
- return 0;
+ return state.errors;
}
int main(int argc, char **argv)
--
2.5.5