From: Damien Lespiau Subject: Re: [PATCH i-g-t] kms_universal_plane: Don't assert outside of fixtures/subtests Date: Tue, 8 Jul 2014 00:01:41 +0100 Message-ID: <20140707230141.GB22478@strange.amr.corp.intel.com> References: <1404471684-12910-1-git-send-email-damien.lespiau@intel.com> <20140707211849.GJ17271@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTP id 2EC9089FFD for ; Mon, 7 Jul 2014 16:02:44 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20140707211849.GJ17271@phenom.ffwll.local> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Daniel Vetter Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Mon, Jul 07, 2014 at 11:18:49PM +0200, Daniel Vetter wrote: > On Fri, Jul 04, 2014 at 12:01:24PM +0100, Damien Lespiau wrote: > > Doing otherwise breaks listing the subtests. The test was throwing an > > error out when universal planes were disabled as well because of that. > > > > Cc: Matt Roper > > Signed-off-by: Damien Lespiau > > --- > > tests/kms_universal_plane.c | 3 +-- > > 1 file changed, 1 insertion(+), 2 deletions(-) > > > > diff --git a/tests/kms_universal_plane.c b/tests/kms_universal_plane.c > > index fe0fde3..c64cdbb 100644 > > --- a/tests/kms_universal_plane.c > > +++ b/tests/kms_universal_plane.c > > @@ -133,6 +133,7 @@ functional_test_pipe(data_t *data, enum pipe pipe, igt_output_t *output) > > int num_primary = 0, num_cursor = 0; > > int i; > > > > + igt_assert(data->display.has_universal_planes); > > Shouldn't this be an igt_require instead? In any case moving this into > subtests is correct. There's already a igt_require in the fixture block, I guess Matt wanted to be extra extra sure. Could have removed it as well. -- Damien