tests: s/exit(EXIT_SUCCESS)/igt_success()/

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter 2013-08-13 12:50:39 +02:00
parent a4cb8954b2
commit c9d0378281
8 changed files with 10 additions and 10 deletions

View File

@ -107,5 +107,5 @@ int main(int argc, char *argv[])
close(fd);
exit(EXIT_SUCCESS);
igt_success();
}

View File

@ -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();
}

View File

@ -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();
}

View File

@ -62,5 +62,5 @@ int main(int argc, char *argv[])
close(fd);
exit(EXIT_SUCCESS);
igt_success();
}

View File

@ -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();
}

View File

@ -87,5 +87,5 @@ int main(int argc, char *argv[])
EINVAL, "bad register");
close(fd);
exit(EXIT_SUCCESS);
igt_success();
}

View File

@ -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();
}

View File

@ -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();
}