An exit status of 77 from a test application will denote a skipped test
for automake. So if exactly 77 failed we'd get a wrong result. Just
return -1 if any failure detected.

Reported-by: Stuart Haslam <stuart.has...@arm.com>
Signed-off-by: Taras Kondratiuk <taras.kondrat...@linaro.org>
---

Automake test manual:
http://www.gnu.org/software/automake/manual/html_node/Scripts_002dbased-Testsuites.html
---
 test/validation/common/odp_cunit_common.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/validation/common/odp_cunit_common.c 
b/test/validation/common/odp_cunit_common.c
index 14ba840..5ae457d 100644
--- a/test/validation/common/odp_cunit_common.c
+++ b/test/validation/common/odp_cunit_common.c
@@ -75,5 +75,5 @@ int main(void)
        odp_term_local();
        odp_term_global();
 
-       return ret;
+       return (ret) ? -1 : 0;
 }
-- 
1.7.9.5


_______________________________________________
lng-odp mailing list
lng-odp@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to