public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t] igt/pm_backlight: Require a connected output for the backlight
Date: Tue, 04 Sep 2018 18:52:25 -0700	[thread overview]
Message-ID: <b0ff9791e0a7332930796833c11fdc9429736fb3.camel@intel.com> (raw)
In-Reply-To: <20180904213448.20196-1-chris@chris-wilson.co.uk>

On Tue, 2018-09-04 at 22:34 +0100, Chris Wilson wrote:
> We cannot control the backlight if its attached output is not
> connected.
> Don't assert, but require.
Makes sense.
Reviewed-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>

> 
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> ---
>  tests/pm_backlight.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/tests/pm_backlight.c b/tests/pm_backlight.c
> index 33614e969..e94340a2b 100644
> --- a/tests/pm_backlight.c
> +++ b/tests/pm_backlight.c
> @@ -225,7 +225,9 @@ igt_main
>  			break;
>  		}
>  
> -		igt_assert_f(found, "Could not map \"%s\" to output
> (%s?)\n", name, name + 6);
> +		igt_require_f(found,
> +			      "Could not map backlight for \"%s\" to
> connected output\n",
> +			      name);
>  
>  		igt_output_set_pipe(output, pipe);
>  		mode = igt_output_get_mode(output);
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

      parent reply	other threads:[~2018-09-05  1:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-04 21:34 [igt-dev] [PATCH i-g-t] igt/pm_backlight: Require a connected output for the backlight Chris Wilson
2018-09-04 22:05 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
2018-09-05  1:52 ` Dhinakaran Pandiyan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b0ff9791e0a7332930796833c11fdc9429736fb3.camel@intel.com \
    --to=dhinakaran.pandiyan@intel.com \
    --cc=chris@chris-wilson.co.uk \
    --cc=igt-dev@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox