summaryrefslogtreecommitdiff
path: root/tests/gem_ctx_bad_destroy.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-12-10 10:18:32 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-12-10 10:18:32 +0100
commitdda85fb108469e3d3c8ce19751f928c70e9fba4c (patch)
treea711eaada22dc9d1713922482e3680bedb10300e /tests/gem_ctx_bad_destroy.c
parentce1a9f918ef2415562bf441c2b7d886c6eb865c4 (diff)
tests: roll out igt_simple_init/igt_simple_main
Also use igt_skip a bit more to simplify some of the tests. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/gem_ctx_bad_destroy.c')
-rw-r--r--tests/gem_ctx_bad_destroy.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/gem_ctx_bad_destroy.c b/tests/gem_ctx_bad_destroy.c
index e93642f6..3fcc946e 100644
--- a/tests/gem_ctx_bad_destroy.c
+++ b/tests/gem_ctx_bad_destroy.c
@@ -54,7 +54,7 @@ static void handle_bad(int ret, int lerrno, int expected, const char *desc)
}
}
-int main(int argc, char *argv[])
+igt_simple_main
{
struct local_drm_i915_context_destroy destroy;
uint32_t ctx_id;
@@ -86,6 +86,4 @@ int main(int argc, char *argv[])
handle_bad(ret, errno, ENOENT, "default destroy");
close(fd);
-
- igt_success();
}