[igt-dev] [PATCH i-g-t v2 0/2] Add negative tests to VGEM

Maíra Canal mcanal at igalia.com
Thu Mar 9 13:51:14 UTC 2023


Currently, the VGEM tests don't cover any negative tests. So, by inspecting
the driver code, add tests that input invalid arguments and then, check if
the driver is returning the correct values.

In the first patch, update VGEM to use the UAPI header instead of having it
defined in the source code and in the second patch, introduce the negative
tests.

v1 -> v2:
- Don't remove "#include <stdbool.h>"

Best Regards,
- Maíra Canal

Maíra Canal (2):
  lib/igt_vgem: Use UAPI header
  tests/vgem_basic: Add negative tests

 lib/igt_vgem.c     | 36 +++++++-------------------
 lib/igt_vgem.h     |  2 +-
 tests/vgem_basic.c | 63 ++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 73 insertions(+), 28 deletions(-)

-- 
2.39.2



More information about the igt-dev mailing list