diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2018-12-20 16:14:10 +0000 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-01-01 18:24:22 +0200 |
commit | e3bb826e660a0749a34f3571c7142c4e8123b563 (patch) | |
tree | 8d7435d5be36667e623c1c31115951a90d2a8e57 | |
parent | 3900b0771ecb160f26a24b4a9bf72e827256e7da (diff) |
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 <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
[Use an enum instead of macros for test return codes.]
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r-- | test/libtest/test.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 <sstream> +enum TestStatus { + TestPass = 0, + TestFail = -1, + TestSkip = 77, +}; + class Test { public: |