summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVlad Zakharov <Vladislav.Zakharov@synopsys.com>2016-06-16 18:29:09 +0300
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-06-16 21:57:40 +0200
commit0d3be3a1d996093aa2ecd41ef8ae7192760aa79c (patch)
tree44544ea7cc7f0b0d1d68abba56cffe2f03d1d5a7
parent199ffd4d10f8ef734032025e0a6847a9e2017bdd (diff)
test: regex: Make testregex return error count
Testregex returned 0 even when some sub-tests inside the testregex failed. Now it returns error count. Signed-off-by: Vlad Zakharov <vzakhar@synopsys.com>
-rw-r--r--test/regex/testregex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/regex/testregex.c b/test/regex/testregex.c
index 993ac2687..d18761dd3 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)