mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-20 04:42:53 +00:00
tests: Run igt.cocci
Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
@@ -40,9 +40,9 @@ int32_t ctx;
|
||||
#define LOCAL_IOCTL_I915_GEM_CONTEXT_SETPARAM DRM_IOWR (DRM_COMMAND_BASE + LOCAL_I915_GEM_CONTEXT_SETPARAM, struct local_i915_gem_context_param)
|
||||
|
||||
#define TEST_SUCCESS(ioc) \
|
||||
igt_assert(drmIoctl(fd, (ioc), &ctx_param) == 0);
|
||||
do_ioctl(fd, (ioc), &ctx_param);
|
||||
#define TEST_FAIL(ioc, exp_errno) \
|
||||
igt_assert(drmIoctl(fd, (ioc), &ctx_param) < 0 && errno == exp_errno);
|
||||
do_ioctl_err(fd, (ioc), &ctx_param, exp_errno);
|
||||
|
||||
igt_main
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user