From: Daniel Vetter Subject: [PATCH] tests/gem_exec_params: One more invalid ring tests Date: Mon, 28 Apr 2014 15:28:10 +0200 Message-ID: <1398691690-23590-1-git-send-email-daniel.vetter@ffwll.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f47.google.com (mail-ee0-f47.google.com [74.125.83.47]) by gabe.freedesktop.org (Postfix) with ESMTP id 11D826E866 for ; Mon, 28 Apr 2014 07:51:15 -0700 (PDT) Received: by mail-ee0-f47.google.com with SMTP id b15so4954414eek.20 for ; Mon, 28 Apr 2014 07:51:15 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Intel Graphics Development Cc: Daniel Vetter List-Id: intel-gfx@lists.freedesktop.org With the vebox 2 patches the number of internal rings don't match the number of exposed rings. So add another subtest with an invalid ring which should be invalid both internally and externally. The bug this will catch is using the ring structure before validation, which the old "invalide-ring" wont be able to due to the internal vebox2 ring. Signed-off-by: Daniel Vetter --- tests/gem_exec_params.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/gem_exec_params.c b/tests/gem_exec_params.c index 306039c244e3..769969d3fe56 100644 --- a/tests/gem_exec_params.c +++ b/tests/gem_exec_params.c @@ -117,6 +117,11 @@ igt_main RUN_FAIL(EINVAL); } igt_subtest("invalid-ring") { + execbuf.flags = I915_EXEC_RING_MASK; + RUN_FAIL(EINVAL); + } + + igt_subtest("invalid-ring2") { execbuf.flags = LOCAL_I915_EXEC_VEBOX+1; RUN_FAIL(EINVAL); } -- 1.8.1.4