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>
This commit is contained in:
Kieran Bingham 2018-12-20 16:14:10 +00:00 committed by Laurent Pinchart
parent 3900b0771e
commit e3bb826e66

View file

@ -9,6 +9,12 @@
#include <sstream>
enum TestStatus {
TestPass = 0,
TestFail = -1,
TestSkip = 77,
};
class Test
{
public: