diff options
| author | Thomas Wood <thomas.wood@intel.com> | 2015-04-09 09:24:12 +0100 |
|---|---|---|
| committer | Thomas Wood <thomas.wood@intel.com> | 2015-04-14 17:43:05 +0100 |
| commit | b47032e191f0afb8d2dabf90889eee6dac8fc0e1 (patch) | |
| tree | d2f09b48fd8881bb8d20d1f276862a400e8958d8 /tests | |
| parent | 41fe1d1a4452891a297cea427a338c8769fc5c26 (diff) | |
lib: add a define for test failure exit status
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/gem_ring_sync_copy.c | 2 | ||||
| -rw-r--r-- | tests/kms_sink_crc_basic.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/gem_ring_sync_copy.c b/tests/gem_ring_sync_copy.c index f5ffddc3..13af1989 100644 --- a/tests/gem_ring_sync_copy.c +++ b/tests/gem_ring_sync_copy.c @@ -317,7 +317,7 @@ static void run_test(data_t *data, enum ring r1, enum ring r2, enum test test) bo_check(data, b, 0xc); break; default: - igt_fail(1); + igt_fail(IGT_EXIT_FAILURE); } r1_ops->busy_fini(data); diff --git a/tests/kms_sink_crc_basic.c b/tests/kms_sink_crc_basic.c index d2cc7ed7..e4604040 100644 --- a/tests/kms_sink_crc_basic.c +++ b/tests/kms_sink_crc_basic.c @@ -100,7 +100,7 @@ static void assert_color(char *crc, enum color color) (bh & mask) == 0); break; default: - igt_fail(-1); + igt_fail(IGT_EXIT_FAILURE); } } |
