summaryrefslogtreecommitdiff
path: root/tests/prime_nv_test.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-08-14 16:02:24 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-08-14 16:08:00 +0200
commita1ca8ef5b1f44845bb2d0eada0123eb35b7e0b21 (patch)
tree7ebbf929d3c64a28312a082950f13e4eccfbc2dd /tests/prime_nv_test.c
parentec283d6a52f49963b7f4d5d6582142f7f2025ded (diff)
tests: use igt_exit() consistently with subtests
This is mostly important to get the SKIP reporting right, but I've found a few stragglers that wanted to get converted over to the igt result reporting completely. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/prime_nv_test.c')
-rw-r--r--tests/prime_nv_test.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/prime_nv_test.c b/tests/prime_nv_test.c
index 3b716aad..59fd9671 100644
--- a/tests/prime_nv_test.c
+++ b/tests/prime_nv_test.c
@@ -505,8 +505,7 @@ int main(int argc, char **argv)
#define xtest(name) \
igt_subtest(#name) \
- if (test_##name()) \
- igt_fail(2);
+ igt_assert(test_##name() == 0);
xtest(i915_nv_sharing);
xtest(nv_i915_sharing);
@@ -525,5 +524,5 @@ int main(int argc, char **argv)
close(intel_fd);
close(nouveau_fd);
- return ret;
+ igt_exit();
}