diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-05-14 09:56:53 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-05-14 09:56:53 +0200 |
commit | 0b7ce4ac2929ea56dfde508d551163a5304c66d8 (patch) | |
tree | 7af13f919437cc28ab61dbae3fee42a159fcfb6f /tests/kms_setmode.c | |
parent | e624fa8a2e1a31494c6e47a65e378e480882422d (diff) |
tests: Use igt macros more
Often just folding together of the common if (cond) printf;
abort|igt_skip|igt_fail; pattern. But in a few cases I've ripped out
more since the igt macros will already print the condition and errno.
A few tests where more work (like ripping out return codes en masse)
is needed left as-is.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/kms_setmode.c')
-rw-r--r-- | tests/kms_setmode.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/kms_setmode.c b/tests/kms_setmode.c index 02d5850a..0b765a9c 100644 --- a/tests/kms_setmode.c +++ b/tests/kms_setmode.c @@ -709,10 +709,8 @@ int main(int argc, char **argv) igt_skip_on_simulation(); - if (dry_run && filter_test_id) { - fprintf(stderr, "only one of -d and -t is accepted\n"); - exit(1); - } + igt_assert_f(!(dry_run && filter_test_id), + "only one of -d and -t is accepted\n"); igt_fixture { drm_fd = drm_open_any(); |