Re: [PATCH i-g-t] igt/meta_test: Add a warn subtest to make sure warnings are caught as expected.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Reviewed-by: Marta Lofstedt <marta.lofstedt@xxxxxxxxx>

> -----Original Message-----
> From: Maarten Lankhorst [mailto:maarten.lankhorst@xxxxxxxxxxxxxxx]
> Sent: Tuesday, June 20, 2017 11:44 AM
> To: intel-gfx@xxxxxxxxxxxxxxxxxxxxx
> Cc: Maarten Lankhorst <maarten.lankhorst@xxxxxxxxxxxxxxx>; Lofstedt,
> Marta <marta.lofstedt@xxxxxxxxx>; Latvala, Petri <petri.latvala@xxxxxxxxx>
> Subject: [PATCH i-g-t] igt/meta_test: Add a warn subtest to make sure
> warnings are caught as expected.
> 
> Cc: Marta Löfstedt <marta.lofstedt@xxxxxxxxx>
> Cc: Petri Latvala <petri.latvala@xxxxxxxxx>
> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@xxxxxxxxxxxxxxx>
> ---
>  tests/intel-ci/meta.testlist | 1 +
>  tests/meta_test.c            | 6 ++++++
>  2 files changed, 7 insertions(+)
> 
> diff --git a/tests/intel-ci/meta.testlist b/tests/intel-ci/meta.testlist index
> b3e29235fac6..2ec3db58a409 100644
> --- a/tests/intel-ci/meta.testlist
> +++ b/tests/intel-ci/meta.testlist
> @@ -1,4 +1,5 @@
>  igt@meta_test@pass-result
> +igt@meta_test@warn
>  igt@meta_test@fail-result
>  igt@meta_test@dmesg-pass
>  igt@meta_test@dmesg-warn
> diff --git a/tests/meta_test.c b/tests/meta_test.c index
> c02cf8bc069f..a67b4c5e113f 100644
> --- a/tests/meta_test.c
> +++ b/tests/meta_test.c
> @@ -128,6 +128,12 @@ igt_main
>  	igt_subtest("pass-result")
>  		test_result(true);
> 
> +	igt_subtest("warn") {
> +		igt_warn("This is a test that should fail with a
> warning\n");
> +
> +		test_result(true);
> +	}
> +
>  	igt_subtest("fail-result")
>  		test_result(false);
> 
> --
> 2.11.0

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




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux