summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2018-12-20 19:43:48 +0000
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-01-01 18:24:22 +0200
commite3694a3ae85fcbd5e8bf21ff045ceb5c6e65b240 (patch)
tree40ce09f5d2c94ec692fa4be26ec54e50cc5d45e1
parente3bb826e660a0749a34f3571c7142c4e8123b563 (diff)
test: libtest: Return all non-zero init values
A skipped test is currently defined as returning 77. If this is returned by the init stage, currently the execute call will continue on to the run stage. Correct this such that any non-zero return code from the init phase will abort the test. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r--test/libtest/test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/libtest/test.cpp b/test/libtest/test.cpp
index 1bb6ebcb..9d537ea0 100644
--- a/test/libtest/test.cpp
+++ b/test/libtest/test.cpp
@@ -20,7 +20,7 @@ int Test::execute()
int ret;
ret = init();
- if (ret < 0)
+ if (ret)
return ret;
ret = run();