Skip to contentSkip to conversation

igt/meta_test: Add a warn subtest to make sure warnings are caught as expected.

PATCH In review Maarten Lankhorst 2 participants 4 messages Jun 20, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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]>
---
 tests/intel-ci/meta.testlist | 1 +
 tests/meta_test.c            | 6 ++++++
 2 files changed, 7 insertions(+)
tests/intel-ci/meta.testlist +1 -0
index b3e29235fac6..2ec3db58a409 100644
@@ -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
index c02cf8bc069f..a67b4c5e113f 100644
@@ -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
#1 lore raw

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]>
---
 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..2ec3db58a409 100644

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 index renamed from tests/meta_test.c +0 -0

c02cf8bc069f..a67b4c5e113f 100644

tests/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

Reviewed-by on v1 1/1
#2 lore raw
In reply to Maarten Lankhorst
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]>
---
 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..2ec3db58a409 100644

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 index renamed from tests/meta_test.c +0 -0

c02cf8bc069f..a67b4c5e113f 100644

tests/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