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 7263A10E3AE for ; Fri, 17 Mar 2023 14:18:36 +0000 (UTC) From: =?UTF-8?q?Ma=C3=ADra=20Canal?= To: Melissa Wen , Daniel Vetter , Petri Latvala , Kamil Konieczny Date: Fri, 17 Mar 2023 11:15:44 -0300 Message-Id: <20230317141546.24302-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 v3 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. 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 " v2 -> v3: - Drop "," and "So," (Kamil Konieczny). - Use past tense verbs (Kamil Konieczny). - s/the pad is zero/non-zero pad is rejected (Kamil Konieczny). 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