public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] lib/igt_kms.c: igt_require -> igt_require_f("two displays required\n")
@ 2015-02-27  2:43 Marc Herbert
  2015-02-27 15:06 ` Daniel Vetter
  0 siblings, 1 reply; 2+ messages in thread
From: Marc Herbert @ 2015-02-27  2:43 UTC (permalink / raw)
  To: intel-gfx; +Cc: Marc Herbert

The bare "Test requirement: modes" message is too cryptic, I had to go and
read the source code to understand the missing requirement.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
---

If there is a different message that you would like to push yourself
then please don't mind me - I think ANY message would do.

 tests/kms_flip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/kms_flip.c b/tests/kms_flip.c
index b843478..cae02e9 100644
--- a/tests/kms_flip.c
+++ b/tests/kms_flip.c
@@ -1544,7 +1544,7 @@ static int run_pair(int duration, int flags)
 
 	/* If we have fewer than 2 connected outputs then we won't have any
 	 * configuration at all. So skip in that case. */
-	igt_require(modes);
+	igt_require_f(modes, "At least two displays required\n");
 	duration = duration * 1000 / modes;
 	duration = max(duration, 500);
 
-- 
1.9.3

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH i-g-t] lib/igt_kms.c: igt_require -> igt_require_f("two displays required\n")
  2015-02-27  2:43 [PATCH i-g-t] lib/igt_kms.c: igt_require -> igt_require_f("two displays required\n") Marc Herbert
@ 2015-02-27 15:06 ` Daniel Vetter
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Vetter @ 2015-02-27 15:06 UTC (permalink / raw)
  To: Marc Herbert; +Cc: intel-gfx

On Thu, Feb 26, 2015 at 06:43:43PM -0800, Marc Herbert wrote:
> The bare "Test requirement: modes" message is too cryptic, I had to go and
> read the source code to understand the missing requirement.
> 
> Signed-off-by: Marc Herbert <marc.herbert@intel.com>

Nice one, applied.

Thanks, Daniel
> ---
> 
> If there is a different message that you would like to push yourself
> then please don't mind me - I think ANY message would do.
> 
>  tests/kms_flip.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/kms_flip.c b/tests/kms_flip.c
> index b843478..cae02e9 100644
> --- a/tests/kms_flip.c
> +++ b/tests/kms_flip.c
> @@ -1544,7 +1544,7 @@ static int run_pair(int duration, int flags)
>  
>  	/* If we have fewer than 2 connected outputs then we won't have any
>  	 * configuration at all. So skip in that case. */
> -	igt_require(modes);
> +	igt_require_f(modes, "At least two displays required\n");
>  	duration = duration * 1000 / modes;
>  	duration = max(duration, 500);
>  
> -- 
> 1.9.3
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-02-27 15:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-27  2:43 [PATCH i-g-t] lib/igt_kms.c: igt_require -> igt_require_f("two displays required\n") Marc Herbert
2015-02-27 15:06 ` Daniel Vetter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox