From e3bb826e660a0749a34f3571c7142c4e8123b563 Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Thu, 20 Dec 2018 16:14:10 +0000 Subject: test: libtest: Add test return codes The meson test infrastructure uses return codes to determine test results. Define these values for use in tests. Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinchart [Use an enum instead of macros for test return codes.] Signed-off-by: Laurent Pinchart --- test/libtest/test.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/libtest') diff --git a/test/libtest/test.h b/test/libtest/test.h index c85eeb5d..ec08bf97 100644 --- a/test/libtest/test.h +++ b/test/libtest/test.h @@ -9,6 +9,12 @@ #include +enum TestStatus { + TestPass = 0, + TestFail = -1, + TestSkip = 77, +}; + class Test { public: -- cgit v1.2.1