Reviewed-by: Marta Lofstedt <marta.lofst...@intel.com>

> -----Original Message-----
> From: Maarten Lankhorst [mailto:maarten.lankho...@linux.intel.com]
> Sent: Tuesday, June 20, 2017 11:44 AM
> To: intel-gfx@lists.freedesktop.org
> Cc: Maarten Lankhorst <maarten.lankho...@linux.intel.com>; Lofstedt,
> Marta <marta.lofst...@intel.com>; Latvala, Petri <petri.latv...@intel.com>
> 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.lofst...@intel.com>
> Cc: Petri Latvala <petri.latv...@intel.com>
> Signed-off-by: Maarten Lankhorst <maarten.lankho...@linux.intel.com>
> ---
>  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@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to