From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3D00E10E813 for ; Thu, 9 Mar 2023 13:51:34 +0000 (UTC) From: =?UTF-8?q?Ma=C3=ADra=20Canal?= To: Melissa Wen , Daniel Vetter , Petri Latvala , Kamil Konieczny Date: Thu, 9 Mar 2023 10:51:14 -0300 Message-Id: <20230309135116.128602-1-mcanal@igalia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t v2 0/2] Add negative tests to VGEM List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: igt-dev@lists.freedesktop.org Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: 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 " 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