From patchwork Wed Feb 18 17:06:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Wood X-Patchwork-Id: 5845441 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4638B9F36A for ; Wed, 18 Feb 2015 17:06:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8B47120221 for ; Wed, 18 Feb 2015 17:06:25 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 2B9752021F for ; Wed, 18 Feb 2015 17:06:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7F4306E078; Wed, 18 Feb 2015 09:06:23 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wg0-f47.google.com (mail-wg0-f47.google.com [74.125.82.47]) by gabe.freedesktop.org (Postfix) with ESMTP id BBBF66E03F for ; Wed, 18 Feb 2015 09:06:19 -0800 (PST) Received: by mail-wg0-f47.google.com with SMTP id x12so2391743wgg.6 for ; Wed, 18 Feb 2015 09:06:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=NuHSDsaLYslMN/bEk8YLA9pSY8ropyXQhzFN4/jDbjw=; b=SsuS4drEqy1C9Cz4ZOtEWAhJNUwFALzX7VpDEmqybAMLzg+6kr6qXK2HUyFssZ3cXT Xf07cP2C6BXkGQ9tOVoA+B25G7zw1qkL0NoT9lZgahRogVgSW5+WfH6yUu1MBgKphH8x L5xMl9tpLfDXjFIBSiQH48RhtY62s5vALMJB3RpjUqfoliHZdAOPTULXsoOfwFpD7Sg/ espZ6uvxejPJTG0KL1tPzXO6LPesQE3HR0odrBQ9HqHnwg1z76eG+yighFsb1P5bfRmh /5dKEm4c8kg972EgV9aM9WJJYqPvP3tuy9LhtZqrHNZL/AT6Nsw+HFYdo4HlU8PnpwPj TI6w== X-Gm-Message-State: ALoCoQmREK4OrP6osLwf7hzR6FX3gCqhaWITGHcMSA48vkdVT5E8pJyWN1//3r5/R8g1MTSwtI8i X-Received: by 10.194.78.231 with SMTP id e7mr309016wjx.33.1424279178772; Wed, 18 Feb 2015 09:06:18 -0800 (PST) Received: from pistachio.icx.intel.com ([83.217.123.106]) by mx.google.com with ESMTPSA id ub1sm33474610wjc.43.2015.02.18.09.06.17 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Feb 2015 09:06:17 -0800 (PST) From: Thomas Wood To: intel-gfx@lists.freedesktop.org Date: Wed, 18 Feb 2015 17:06:13 +0000 Message-Id: <1424279176-5000-1-git-send-email-thomas.wood@intel.com> X-Mailer: git-send-email 2.1.0 Subject: [Intel-gfx] [PATCH i-g-t 1/4] tests: improve pipe enumeration X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Thomas Wood --- tests/kms_flip_event_leak.c | 2 +- tests/kms_plane.c | 2 +- tests/kms_universal_plane.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/kms_flip_event_leak.c b/tests/kms_flip_event_leak.c index 8a5e6db..ea4ce4c 100644 --- a/tests/kms_flip_event_leak.c +++ b/tests/kms_flip_event_leak.c @@ -119,7 +119,7 @@ igt_simple_main igt_display_init(&data.display, data.drm_fd); - for (pipe = 0; pipe < 3; pipe++) { + for_each_pipe(&data.display, pipe) { for_each_connected_output(&data.display, output) { if (test(&data, pipe, output)) valid_tests++; diff --git a/tests/kms_plane.c b/tests/kms_plane.c index c94eac0..8a08f20 100644 --- a/tests/kms_plane.c +++ b/tests/kms_plane.c @@ -399,7 +399,7 @@ igt_main igt_display_init(&data.display, data.drm_fd); } - for (int pipe = 0; pipe < 3; pipe++) + for (int pipe = 0; pipe < I915_MAX_PIPES; pipe++) run_tests_for_pipe(&data, pipe); igt_fixture { diff --git a/tests/kms_universal_plane.c b/tests/kms_universal_plane.c index 04ff840..6a05584 100644 --- a/tests/kms_universal_plane.c +++ b/tests/kms_universal_plane.c @@ -569,7 +569,7 @@ igt_main igt_require(data.display.has_universal_planes); } - for (int pipe = 0; pipe < 3; pipe++) + for (int pipe = 0; pipe < I915_MAX_PIPES; pipe++) run_tests_for_pipe(&data, pipe); igt_fixture {