igt/meta_test: Add a warn subtest to make sure warnings are caught as expected.
PATCH 1/1 igt/meta_test: Add a warn subtest to make sure warnings are caught as expected.
--- tests/intel-ci/meta.testlist | 1 + tests/meta_test.c | 6 ++++++ 2 files changed, 7 insertions(+)
tests/intel-ci/meta.testlist +1 -0
@@ -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
tests/meta_test.c +6 -0
@@ -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);
Signature · 6 lines
2.11.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
This should be added to the tests/intel-ci/meta.testlist
/Marta
Quoted 46 lines
-----Original Message-----
From: Maarten Lankhorst [mailto:[email protected]]
Sent: Tuesday, June 20, 2017 11:44 AM
To: [email protected]
Cc: Maarten Lankhorst <[email protected]>; Lofstedt, Marta <[email protected]>; Latvala, Petri <[email protected]>
Subject: [PATCH i-g-t] igt/meta_test: Add a warn subtest to make sure warnings are caught as expected.Cc Marta Löfstedt <[email protected]>Cc Petri Latvala <[email protected]>Signed-off-by Maarten Lankhorst <[email protected]>--- tests/intel-ci/meta.testlist | 1 + tests/meta_test.c | 6 ++++++ 2 files changed, 7 insertions(+)tests/intel-ci/meta.testlist index renamed from tests/intel-ci/meta.testlist +0
-0
b3e29235fac6..2ec3db58a409100644tests/intel-ci/meta.testlist +1
-0@@ -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-warntests/meta_test.c index renamed from tests/meta_test.c +0
-0
c02cf8bc069f..a67b4c5e113f100644tests/meta_test.c +6
-1@@ -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); --
Quoted 1 line
2.11.0
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 46 lines
-----Original Message-----
From: Maarten Lankhorst [mailto:[email protected]]
Sent: Tuesday, June 20, 2017 11:44 AM
To: [email protected]
Cc: Maarten Lankhorst <[email protected]>; Lofstedt, Marta <[email protected]>; Latvala, Petri <[email protected]>
Subject: [PATCH i-g-t] igt/meta_test: Add a warn subtest to make sure warnings are caught as expected.Cc Marta Löfstedt <[email protected]>Cc Petri Latvala <[email protected]>Signed-off-by Maarten Lankhorst <[email protected]>--- tests/intel-ci/meta.testlist | 1 + tests/meta_test.c | 6 ++++++ 2 files changed, 7 insertions(+)tests/intel-ci/meta.testlist index renamed from tests/intel-ci/meta.testlist +0
-0
b3e29235fac6..2ec3db58a409100644tests/intel-ci/meta.testlist +1
-0@@ -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-warntests/meta_test.c index renamed from tests/meta_test.c +0
-0
c02cf8bc069f..a67b4c5e113f100644tests/meta_test.c +6
-1@@ -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); --
Quoted 1 line
2.11.0
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Op 20-06-17 om 10:57 schreef Lofstedt, Marta:
Quoted 1 line
Reviewed-by Marta Lofstedt <[email protected]>
Thanks, applied.
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx