From c9d037828130a97f5952164fba06007b056dfb4b Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Tue, 13 Aug 2013 12:50:39 +0200 Subject: [PATCH] tests: s/exit(EXIT_SUCCESS)/igt_success()/ Signed-off-by: Daniel Vetter --- tests/gem_ctx_bad_destroy.c | 2 +- tests/gem_ctx_bad_exec.c | 2 +- tests/gem_ctx_basic.c | 4 ++-- tests/gem_ctx_create.c | 2 +- tests/gem_ctx_exec.c | 2 +- tests/gem_reg_read.c | 2 +- tests/sysfs_rc6_residency.c | 4 ++-- tests/sysfs_rps.c | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/gem_ctx_bad_destroy.c b/tests/gem_ctx_bad_destroy.c index ed1474a..5e56d5a 100644 --- a/tests/gem_ctx_bad_destroy.c +++ b/tests/gem_ctx_bad_destroy.c @@ -107,5 +107,5 @@ int main(int argc, char *argv[]) close(fd); - exit(EXIT_SUCCESS); + igt_success(); } diff --git a/tests/gem_ctx_bad_exec.c b/tests/gem_ctx_bad_exec.c index 22a3b8a..5591798 100644 --- a/tests/gem_ctx_bad_exec.c +++ b/tests/gem_ctx_bad_exec.c @@ -126,5 +126,5 @@ int main(int argc, char *argv[]) igt_subtest("blt") igt_assert(exec(fd, handle, I915_EXEC_BLT, ctx_id) != 0); - exit(EXIT_SUCCESS); + igt_success(); } diff --git a/tests/gem_ctx_basic.c b/tests/gem_ctx_basic.c index 0926e97..330eaec 100644 --- a/tests/gem_ctx_basic.c +++ b/tests/gem_ctx_basic.c @@ -130,7 +130,7 @@ static void parse(int argc, char *argv[]) case 'h': case '?': default: - exit(EXIT_SUCCESS); + igt_success(); break; } } @@ -169,5 +169,5 @@ int main(int argc, char *argv[]) free(threads); close(fd); - exit(EXIT_SUCCESS); + igt_success(); } diff --git a/tests/gem_ctx_create.c b/tests/gem_ctx_create.c index 66bbe57..5440ae0 100644 --- a/tests/gem_ctx_create.c +++ b/tests/gem_ctx_create.c @@ -62,5 +62,5 @@ int main(int argc, char *argv[]) close(fd); - exit(EXIT_SUCCESS); + igt_success(); } diff --git a/tests/gem_ctx_exec.c b/tests/gem_ctx_exec.c index 15c87b0..c2021bf 100644 --- a/tests/gem_ctx_exec.c +++ b/tests/gem_ctx_exec.c @@ -138,5 +138,5 @@ int main(int argc, char *argv[]) igt_assert(exec(fd, handle, I915_EXEC_RENDER, ctx_id) < 0); - exit(EXIT_SUCCESS); + igt_success(); } diff --git a/tests/gem_reg_read.c b/tests/gem_reg_read.c index 1e36aa4..44f9135 100644 --- a/tests/gem_reg_read.c +++ b/tests/gem_reg_read.c @@ -87,5 +87,5 @@ int main(int argc, char *argv[]) EINVAL, "bad register"); close(fd); - exit(EXIT_SUCCESS); + igt_success(); } diff --git a/tests/sysfs_rc6_residency.c b/tests/sysfs_rc6_residency.c index bb5d211..13f00ad 100644 --- a/tests/sysfs_rc6_residency.c +++ b/tests/sysfs_rc6_residency.c @@ -84,7 +84,7 @@ int main(int argc, char *argv[]) /* claim success if no rc6 enabled. */ if (readit(path) == 0) - exit(EXIT_SUCCESS); + igt_success(); ret = asprintf(&path, "/sys/class/drm/card%d/power/rc6_residency_ms", device); igt_assert(ret != -1); @@ -120,5 +120,5 @@ int main(int argc, char *argv[]) igt_fail(1); } - exit(EXIT_SUCCESS); + igt_success(); } diff --git a/tests/sysfs_rps.c b/tests/sysfs_rps.c index 59a2e92..9c1d60c 100644 --- a/tests/sysfs_rps.c +++ b/tests/sysfs_rps.c @@ -192,5 +192,5 @@ int main(int argc, char *argv[]) writeval(stuff[MIN].filp, origmin); writeval(stuff[MAX].filp, origmax); - exit(EXIT_SUCCESS); + igt_success(); } -- 2.7.4