summaryrefslogtreecommitdiff
path: root/tests/sysfs_rc6_residency.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-08-13 12:49:46 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-08-13 15:07:44 +0200
commita4cb8954b2d8f103b613aaa9860d9f25e8e2954d (patch)
treefb6038d9e7d76c464c8b466ce6ce3963156f87b5 /tests/sysfs_rc6_residency.c
parent907377da0e9c2d878f45201230b8d3900310cb0b (diff)
tests: s/exit(EXIT_FAILURE)/igt_fail(1)/
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/sysfs_rc6_residency.c')
-rw-r--r--tests/sysfs_rc6_residency.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/sysfs_rc6_residency.c b/tests/sysfs_rc6_residency.c
index 34b0b406..bb5d2110 100644
--- a/tests/sysfs_rc6_residency.c
+++ b/tests/sysfs_rc6_residency.c
@@ -111,13 +111,13 @@ int main(int argc, char *argv[])
if (diff > (SLEEP_DURATION + RC6_FUDGE)) {
fprintf(stderr, "Diff was too high. That is unpossible\n");
- exit(EXIT_FAILURE);
+ igt_fail(1);
}
if (diff < (SLEEP_DURATION - RC6_FUDGE)) {
fprintf(stderr, "GPU was not in RC6 long enough. Check that "
"the GPU is as idle as possible (ie. no X, "
"running and running no other tests)\n");
- exit(EXIT_FAILURE);
+ igt_fail(1);
}
exit(EXIT_SUCCESS);