Re: [igt-dev] [PATCH i-g-t 06/10] igt: add timeline test cases

zhoucm1
2019-07-26T02:56:27Z

On 2019年07月25日 18:30, Lionel Landwerlin wrote:
> +static void
> +test_query_bad_pad(int fd)
> +{
> + struct drm_syncobj_timeline_array array = {};
> + uint32_t handle = 0;
> + int ret;
> +
> + array.pad = 0xdeadbeef;
> + array.count_handles = 1;
> + array.handles = to_user_pointer(&handle);
> + ret = igt_ioctl(fd, DRM_IOCTL_SYNCOBJ_QUERY, &array);
> + igt_assert(ret == -1 && errno == EINVAL);
> +}
We need remove this testing case as we extend this pad to be flags.

-David