[Intel-gfx] [PATCH i-g-t] igt/meta_test: Add a warn subtest to make sure warnings are caught as expected.
Lofstedt, Marta
marta.lofstedt at intel.com
Tue Jun 20 08:55:08 UTC 2017
This should be added to the tests/intel-ci/meta.testlist
/Marta
> -----Original Message-----
> From: Maarten Lankhorst [mailto:maarten.lankhorst at linux.intel.com]
> Sent: Tuesday, June 20, 2017 11:44 AM
> To: intel-gfx at lists.freedesktop.org
> Cc: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>; Lofstedt,
> Marta <marta.lofstedt at intel.com>; Latvala, Petri <petri.latvala at 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.lofstedt at intel.com>
> Cc: Petri Latvala <petri.latvala at intel.com>
> Signed-off-by: Maarten Lankhorst <maarten.lankhorst at 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 at meta_test@pass-result
> +igt at meta_test@warn
> igt at meta_test@fail-result
> igt at meta_test@dmesg-pass
> igt at 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
More information about the Intel-gfx
mailing list