[igt-dev] [PATCH i-g-t v3 1/9] lib/tests: Fix test failures with meson 0.50.0

Lyude lyude at redhat.com
Wed Apr 24 20:20:25 UTC 2019


From: Lyude Paul <lyude at redhat.com>

Since meson 0.50.0, unit tests which return the GNU standard return code
99 will fail, regardless of whether or not should_fail:true is passed to
test(). Unfortunately, our standard error code (IGT_EXIT_FAILURE) is
also 99.

So, fix this by changing our standard error code to 98.

Signed-off-by: Lyude Paul <lyude at redhat.com>
---
 lib/igt_core.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/igt_core.h b/lib/igt_core.h
index 47ffd9e7..44634e0f 100644
--- a/lib/igt_core.h
+++ b/lib/igt_core.h
@@ -119,7 +119,7 @@ extern char *igt_frame_dump_path;
  *
  * Exit status indicating a test failure
  */
-#define IGT_EXIT_FAILURE 99
+#define IGT_EXIT_FAILURE 98
 
 bool __igt_fixture(void);
 void __igt_fixture_complete(void);
-- 
2.20.1



More information about the igt-dev mailing list