tests/gem_reset_stats: More macros!

Instead of freaking out about negating the skip condition and punting
I could have remembered that I've solved this already ...

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter 2013-11-20 16:07:30 +01:00
parent 3c55a7df57
commit 4fd0458be2

View File

@ -733,9 +733,9 @@ igt_main
"Architecture %d too old\n", intel_gen(devid));
ret = drmIoctl(fd, CONTEXT_CREATE_IOCTL, &create);
if (ret != 0 && (errno == ENODEV || errno == EINVAL))
igt_skip("Kernel is too old, or contexts not supported: %s\n",
strerror(errno));
igt_skip_on_f(ret != 0 && (errno == ENODEV || errno == EINVAL),
"Kernel is too old, or contexts not supported: %s\n",
strerror(errno));
close(fd);
}