From e3694a3ae85fcbd5e8bf21ff045ceb5c6e65b240 Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Thu, 20 Dec 2018 19:43:48 +0000 Subject: 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 Reviewed-by: Laurent Pinchart Signed-off-by: Laurent Pinchart --- test/libtest/test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/libtest') 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(); -- cgit v1.2.1