Skip to contentSkip to conversation

lib: Add igt_can_fail()

PATCH In review Daniel Vetter 3 participants 7 messages Aug 14, 2017 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 lib: Add igt_can_fail()

Useful to make sure folks use library helpers correctly.

---
 lib/igt_core.c                  | 20 +++++++++++++++++--
 lib/igt_core.h                  |  2 ++
 lib/tests/.gitignore            |  2 ++
 lib/tests/Makefile.sources      |  2 ++
 lib/tests/igt_can_fail.c        | 44 +++++++++++++++++++++++++++++++++++++++++
 lib/tests/igt_can_fail_simple.c | 32 ++++++++++++++++++++++++++++++
 6 files changed, 100 insertions(+), 2 deletions(-)
 create mode 100644 lib/tests/igt_can_fail.c
 create mode 100644 lib/tests/igt_can_fail_simple.c
lib/igt_core.c +18 -2
index c0488e944cec..9eb99eda0244 100644
@@ -1170,7 +1170,7 @@ void igt_fail(int exitcode)
 		else
 			exit_subtest("FAIL");
 	} else {
-		assert(!test_with_subtests || in_fixture);
+		assert(igt_can_fail());
 
 		if (in_fixture) {
 			skip_subtests_henceforth = FAIL;
@@ -1181,6 +1181,22 @@ void igt_fail(int exitcode)
 	}
 }
 
+/**
+ * igt_can_fail:
+ *
+ * Returns true if called from either an #igt_fixture, #igt_subtest or a
+ * testcase without subtests, i.e. #igt_simple_main. Returns false otherwise. In
+ * other words, it checks whether it's legal to call igt_fail(), igt_skip_on()
+ * and all the convenience macros build around those.
+ *
+ * This is useful to make sure that library code is called from the right
+ * places.
+ */
+bool igt_can_fail(void)
+{
+	return !test_with_subtests || in_fixture || in_subtest;
+}
+
 static bool run_under_gdb(void)
 {
 	char buf[1024];
@@ -2015,7 +2031,7 @@ void igt_skip_on_simulation(void)
 	if (igt_only_list_subtests())
 		return;
 
-	if (!in_fixture && !in_subtest) {
+	if (!igt_can_fail()) {
 		igt_fixture
 			igt_require(!igt_run_in_simulation());
 	} else
lib/igt_core.h +2 -0
index 1619a9d65400..619c45c6df90 100644
@@ -306,6 +306,8 @@ void __igt_skip_check(const char *file, const int line,
 	__igt_skip_check(__FILE__, __LINE__, __func__, E, F)
 void igt_success(void);
 
+bool igt_can_fail(void);
+
 void igt_fail(int exitcode) __attribute__((noreturn));
 __attribute__((format(printf, 6, 7)))
 void __igt_fail_assert(const char *domain, const char *file,
lib/tests/.gitignore +2 -0
index 12a3712c20de..ae11dd47af8c 100644
@@ -14,3 +14,5 @@ igt_stats
 igt_subtest_group
 igt_timeout
 igt_hdmi_inject
+igt_can_fail
+igt_can_fail_simple
lib/tests/Makefile.sources +2 -0
index 4cfc0a53aebb..8d1a8dea8263 100644
@@ -14,6 +14,8 @@ check_prog_list = \
 	igt_assert \
 	igt_exit_handler \
 	igt_hdmi_inject \
+	igt_can_fail \
+	igt_can_fail_simple \
 	$(NULL)
 
 TESTS = \
lib/tests/igt_can_fail.c new file +44 -0

44 lines not on this page · raw message

lib/tests/igt_can_fail_simple.c new file +32 -0
new file mode 100644
index 000000000000..0d9f6dd4076c
@@ -0,0 +1,32 @@
+/*
+ * Copyright © 2017 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ */
+
+#include <assert.h>
+#include "igt_core.h"
+
+
+igt_simple_main
+{
+	assert(igt_can_fail());
+}
Signature · 6 lines
2.5.5

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw

PATCH 2/4 lib/kms: Add for_each_pipe_static

for_each_pipe cannot be used for enumerating testcases, so provide something that can.

---
 lib/igt_kms.h               | 16 ++++++++++++++++
 tests/kms_busy.c            |  3 ++-
 tests/kms_concurrent.c      |  3 ++-
 tests/kms_cursor_legacy.c   |  3 ++-
 tests/kms_pipe_color.c      |  3 ++-
 tests/kms_plane.c           |  3 ++-
 tests/kms_plane_lowres.c    |  4 +++-
 tests/kms_plane_multiple.c  |  3 ++-
 tests/kms_universal_plane.c |  4 +++-
 9 files changed, 34 insertions(+), 8 deletions(-)
lib/igt_kms.h +16 -0
index 35428f3e9675..b28fe8c564c5 100644
@@ -463,10 +463,26 @@ static inline bool igt_output_is_connected(igt_output_t *output)
 
 /**
  * for_each_pipe:
+ * @pipe: The pipe to iterate.
+ *
+ * This for loop iterates over all pipes supported by IGT libraries.
+ *
+ * This should be used to enumerate per-pipe subtests since it has no runtime
+ * depencies.
+ */
+#define for_each_pipe_static(pipe) \
+	for (pipe = 0; pipe < IGT_MAX_PIPES; pipe++)
+
+/**
+ * for_each_pipe:
  * @display: a pointer to an #igt_display_t structure
  * @pipe: The pipe to iterate.
  *
  * This for loop iterates over all pipes.
+ *
+ * Note that this cannot be used to enumerate per-pipe subtest names since it
+ * depends upon runtime probing of the actual kms driver that is being tested.
+ * Used #for_each_pipe_static instead.
  */
 #define for_each_pipe(display, pipe)					\
 	for (pipe = 0; pipe < igt_display_get_n_pipes(display); pipe++)
tests/kms_busy.c +2 -1
index dc0021405a06..ecf0b2eb3fd3 100644
@@ -311,6 +311,7 @@ igt_main
 	igt_display_t display = { .drm_fd = -1, .n_pipes = IGT_MAX_PIPES };
 	/* we only test on render */
 	const struct intel_execution_engine *e = &intel_execution_engines[1];
+	enum pipe n;
 
 	igt_skip_on_simulation();
 
@@ -327,7 +328,7 @@ igt_main
 
 	/* XXX Extend to cover atomic rendering tests to all planes + legacy */
 
-	for (int n = 0; n < IGT_MAX_PIPES; n++) {
+	for_each_pipe_static(n) {
 		errno = 0;
 
 		igt_fixture {
tests/kms_concurrent.c +2 -1
index e2cde4ee8745..5d1e0bc5ad19 100644
@@ -401,6 +401,7 @@ int main(int argc, char *argv[])
 		{ "seed",    required_argument, NULL, 's'},
 		{ 0, 0, 0, 0 }
 	};
+	enum pipe pipe;
 
 	igt_subtest_init_parse_opts(&argc, argv, "", long_options, help_str,
 				    opt_handler, NULL);
@@ -415,7 +416,7 @@ int main(int argc, char *argv[])
 		igt_require(data.display.is_atomic);
 	}
 
-	for (int pipe = 0; pipe < IGT_MAX_PIPES; pipe++) {
+	for_each_pipe_static(pipe) {
 		igt_subtest_group
 			run_tests_for_pipe(&data, pipe);
 	}
tests/kms_cursor_legacy.c +2 -1
index 15208f8b0e4f..bdb66f3b51b7 100644
@@ -1425,7 +1425,8 @@ igt_main
 	}
 
 	igt_subtest_group {
-		for (int n = 0; n < IGT_MAX_PIPES; n++) {
+		enum pipe n;
+		for_each_pipe_static(n) {
 			errno = 0;
 
 			igt_fixture {
tests/kms_pipe_color.c +2 -1
index 12400686075c..ccfc08e6be15 100644
@@ -1189,6 +1189,7 @@ invalid_ctm_matrix_sizes(data_t *data)
 igt_main
 {
 	data_t data = {};
+	enum pipe pipe;
 
 	igt_skip_on_simulation();
 
@@ -1200,7 +1201,7 @@ igt_main
 		igt_display_init(&data.display, data.drm_fd);
 	}
 
-	for (int pipe = 0; pipe < IGT_MAX_PIPES; pipe++)
+	for_each_pipe_static(pipe)
 		igt_subtest_group
 			run_tests_for_pipe(&data, pipe);
 
tests/kms_plane.c +2 -1
index 1d92a62bd51c..927d5d37fece 100644
@@ -424,6 +424,7 @@ static data_t data;
 
 igt_main
 {
+	enum pipe pipe;
 
 	igt_skip_on_simulation();
 
@@ -436,7 +437,7 @@ igt_main
 		igt_display_init(&data.display, data.drm_fd);
 	}
 
-	for (int pipe = 0; pipe < IGT_MAX_PIPES; pipe++)
+	for_each_pipe_static(pipe)
 		run_tests_for_pipe_plane(&data, pipe);
 
 	igt_fixture {
tests/kms_plane_lowres.c +3 -1
index ee39759cb0bc..b16c8cd433b2 100644
@@ -339,6 +339,8 @@ static data_t data;
 
 igt_main
 {
+	enum pipe pipe;
+
 	igt_skip_on_simulation();
 
 	igt_fixture {
@@ -350,7 +352,7 @@ igt_main
 		igt_display_init(&data.display, data.drm_fd);
 	}
 
-	for (int pipe = 0; pipe < IGT_MAX_PIPES; pipe++)
+	for_each_pipe_static(pipe)
 		run_tests_for_pipe(&data, pipe);
 
 	igt_fixture {
tests/kms_plane_multiple.c +2 -1
index 4bc26b73de97..aea59df84d76 100644
@@ -492,6 +492,7 @@ int main(int argc, char *argv[])
 		{ "seed",    required_argument, NULL, 's'},
 		{ 0, 0, 0, 0 }
 	};
+	enum pipe pipe;
 
 	igt_subtest_init_parse_opts(&argc, argv, "", long_options, help_str,
 				    opt_handler, NULL);
@@ -506,7 +507,7 @@ int main(int argc, char *argv[])
 		igt_require(data.display.n_pipes > 0);
 	}
 
-	for (int pipe = 0; pipe < IGT_MAX_PIPES; pipe++) {
+	for_each_pipe_static(pipe) {
 		igt_subtest_group
 			run_tests_for_pipe(&data, pipe);
 	}
tests/kms_universal_plane.c +3 -1
index 31f07804b887..58f329e684c4 100644
@@ -787,6 +787,8 @@ static data_t data;
 
 igt_main
 {
+	enum pipe pipe;
+
 	igt_skip_on_simulation();
 
 	igt_fixture {
@@ -799,7 +801,7 @@ igt_main
 		igt_display_init(&data.display, data.drm_fd);
 	}
 
-	for (int pipe = 0; pipe < IGT_MAX_PIPES; pipe++) {
+	for_each_pipe_static(pipe) {
 		igt_subtest_group
 			run_tests_for_pipe(&data, pipe);
 	}
Signature · 6 lines
2.5.5

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#2 lore raw

PATCH 3/4 tests/kms_ccs: Fix subtest enumeration:

In reply to Daniel Vetter

- We can't enumerate planes, push that into the subtest.
- pipe enumeration needs to use for_each_pipe_static.

This fells our CI since the test enumeration/sharding happens on the build server, which has no gfx nor does the job run as root ...

Cc Daniel Stone <[email protected]>
Cc Jason Ekstrand <[email protected]>
---
 tests/kms_ccs.c | 20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)
tests/kms_ccs.c +11 -9
index c4f51296dee7..ab9325d14991 100644
@@ -467,6 +467,8 @@ static data_t data;
 
 igt_main
 {
+	enum pipe pipe;
+
 	igt_fixture {
 		data.drm_fd = drm_open_driver_master(DRIVER_INTEL);
 
@@ -477,8 +479,8 @@ igt_main
 		igt_display_init(&data.display, data.drm_fd);
 	}
 
-	for_each_pipe(&data.display, data.pipe) {
-		const char *pipe_name = kmstest_pipe_name(data.pipe);
+	for_each_pipe_static(pipe) {
+		const char *pipe_name = kmstest_pipe_name(pipe);
 		int sprite_idx = 0;
 
 		data.flags = TEST_BAD_PIXEL_FORMAT;
@@ -498,13 +500,13 @@ igt_main
 			test_output(&data);
 
 		data.flags = TEST_CRC;
-		for_each_plane_on_pipe(&data.display, data.pipe, data.plane) {
-			if (data.plane->type == DRM_PLANE_TYPE_PRIMARY)
-				continue;
-			sprite_idx++;
-			igt_subtest_f("pipe-%s-crc-sprite-%d-basic", pipe_name,
-				      sprite_idx)
-				test_output(&data);
+		igt_subtest_f("pipe-%s-crc-sprite-planes-basic", pipe_name) {
+			for_each_plane_on_pipe(&data.display, data.pipe, data.plane) {
+				if (data.plane->type == DRM_PLANE_TYPE_PRIMARY)
+					continue;
+				sprite_idx++;
+					test_output(&data);
+			}
 		}
 
 		data.plane = NULL;
Signature · 6 lines
2.5.5

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#3 lore raw

PATCH 4/4 lib/kms: Check usage of for_each_*

In reply to Daniel Vetter

Except for for_each_pipe_static they cannot be used outside of fixtures/subtest. Assert this.

This will make the broken version of kms_ccs assert when run, which also would have made $make check fail.

Cc Daniel Stone <[email protected]>
Cc Jason Ekstrand <[email protected]>
---
 lib/igt_kms.h | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
lib/igt_kms.h +5 -4
index b28fe8c564c5..96713c24b624 100644
@@ -31,6 +31,7 @@
 #include <stdbool.h>
 #include <stdint.h>
 #include <stddef.h>
+#include <assert.h>
 
 #include <xf86drmMode.h>
 
@@ -457,7 +458,7 @@ static inline bool igt_output_is_connected(igt_output_t *output)
  * This for loop iterates over all outputs.
  */
 #define for_each_connected_output(display, output)		\
-	for (int i__ = 0;  i__ < (display)->n_outputs; i__++)	\
+	for (int i__ = 0;  assert(igt_can_fail()), i__ < (display)->n_outputs; i__++)	\
 		for_each_if (((output = &(display)->outputs[i__]), \
 			      igt_output_is_connected(output)))
 
@@ -485,7 +486,7 @@ static inline bool igt_output_is_connected(igt_output_t *output)
  * Used #for_each_pipe_static instead.
  */
 #define for_each_pipe(display, pipe)					\
-	for (pipe = 0; pipe < igt_display_get_n_pipes(display); pipe++)
+	for (pipe = 0; assert(igt_can_fail()), pipe < igt_display_get_n_pipes(display); pipe++)
 
 /**
  * for_each_pipe_with_valid_output:
@@ -498,7 +499,7 @@ static inline bool igt_output_is_connected(igt_output_t *output)
  */
 #define for_each_pipe_with_valid_output(display, pipe, output) \
 	for (int con__ = pipe = 0; \
-	     pipe < igt_display_get_n_pipes((display)) && con__ < (display)->n_outputs; \
+	     assert(igt_can_fail()), pipe < igt_display_get_n_pipes((display)) && con__ < (display)->n_outputs; \
 	     con__ = (con__ + 1 < (display)->n_outputs) ? con__ + 1 : (pipe = pipe + 1, 0)) \
 		for_each_if (((output = &(display)->outputs[con__]), \
 			     igt_pipe_connector_valid(pipe, output)))
@@ -518,7 +519,7 @@ static inline bool igt_output_is_connected(igt_output_t *output)
 		for_each_if (igt_pipe_connector_valid(pipe, output))
 
 #define for_each_plane_on_pipe(display, pipe, plane)			\
-	for (int j__ = 0; (plane) = &(display)->pipes[(pipe)].planes[j__], \
+	for (int j__ = 0; assert(igt_can_fail()), (plane) = &(display)->pipes[(pipe)].planes[j__], \
 		     j__ < (display)->pipes[(pipe)].n_planes; j__++)
 
 #define IGT_FIXED(i,f)	((i) << 16 | (f))
Signature · 6 lines
2.5.5

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Reviewed-by on v1 1/4
#4 lore raw
In reply to Daniel Vetter

The series LGTM.

Can you resend the whole series and slap a revert of 1385b31d9371fae02af2fd8adb0d9ea86a5bb0f2 at the end? With a pass of CI on such a bunch this series is

Quoted 190 lines · Daniel Vetter

Useful to make sure folks use library helpers correctly.

---
 lib/igt_core.c                  | 20 +++++++++++++++++--
 lib/igt_core.h                  |  2 ++
 lib/tests/.gitignore            |  2 ++
 lib/tests/Makefile.sources      |  2 ++
 lib/tests/igt_can_fail.c        | 44 +++++++++++++++++++++++++++++++++++++++++
 lib/tests/igt_can_fail_simple.c | 32 ++++++++++++++++++++++++++++++
 6 files changed, 100 insertions(+), 2 deletions(-)
 create mode 100644 lib/tests/igt_can_fail.c
 create mode 100644 lib/tests/igt_can_fail_simple.c
lib/igt_core.c +18 -2
index c0488e944cec..9eb99eda0244 100644
@@ -1170,7 +1170,7 @@ void igt_fail(int exitcode)
 		else
 			exit_subtest("FAIL");
 	} else {
-		assert(!test_with_subtests || in_fixture);
+		assert(igt_can_fail());
 
 		if (in_fixture) {
 			skip_subtests_henceforth = FAIL;
@@ -1181,6 +1181,22 @@ void igt_fail(int exitcode)
 	}
 }
 
+/**
+ * igt_can_fail:
+ *
+ * Returns true if called from either an #igt_fixture, #igt_subtest or a
+ * testcase without subtests, i.e. #igt_simple_main. Returns false otherwise. In
+ * other words, it checks whether it's legal to call igt_fail(), igt_skip_on()
+ * and all the convenience macros build around those.
+ *
+ * This is useful to make sure that library code is called from the right
+ * places.
+ */
+bool igt_can_fail(void)
+{
+	return !test_with_subtests || in_fixture || in_subtest;
+}
+
 static bool run_under_gdb(void)
 {
 	char buf[1024];
@@ -2015,7 +2031,7 @@ void igt_skip_on_simulation(void)
 	if (igt_only_list_subtests())
 		return;
 
-	if (!in_fixture && !in_subtest) {
+	if (!igt_can_fail()) {
 		igt_fixture
 			igt_require(!igt_run_in_simulation());
 	} else
lib/igt_core.h +2 -0
index 1619a9d65400..619c45c6df90 100644
@@ -306,6 +306,8 @@ void __igt_skip_check(const char *file, const int line,
 	__igt_skip_check(__FILE__, __LINE__, __func__, E, F)
 void igt_success(void);
 
+bool igt_can_fail(void);
+
 void igt_fail(int exitcode) __attribute__((noreturn));
 __attribute__((format(printf, 6, 7)))
 void __igt_fail_assert(const char *domain, const char *file,
lib/tests/.gitignore +2 -0
index 12a3712c20de..ae11dd47af8c 100644
@@ -14,3 +14,5 @@ igt_stats
 igt_subtest_group
 igt_timeout
 igt_hdmi_inject
+igt_can_fail
+igt_can_fail_simple
lib/tests/Makefile.sources +2 -0
index 4cfc0a53aebb..8d1a8dea8263 100644
@@ -14,6 +14,8 @@ check_prog_list = \
 	igt_assert \
 	igt_exit_handler \
 	igt_hdmi_inject \
+	igt_can_fail \
+	igt_can_fail_simple \
 	$(NULL)
 
 TESTS = \
lib/tests/igt_can_fail.c new file +44 -0
new file mode 100644
index 000000000000..566682422b64
@@ -0,0 +1,44 @@
+/*
+ * Copyright © 2017 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ */
+
+#include <assert.h>
+#include "igt_core.h"
+
+
+igt_main
+{
+	assert(igt_can_fail() == false);
+
+	igt_fixture {
+		assert(igt_can_fail());
+	}
+
+	assert(igt_can_fail() == false);
+
+	igt_subtest("subtest") {
+		assert(igt_can_fail());
+	}
+
+	assert(igt_can_fail() == false);
+}
lib/tests/igt_can_fail_simple.c new file +32 -0
new file mode 100644
index 000000000000..0d9f6dd4076c
@@ -0,0 +1,32 @@
+/*
+ * Copyright © 2017 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ */
+
+#include <assert.h>
+#include "igt_core.h"
+
+
+igt_simple_main
+{
+	assert(igt_can_fail());
+}
Signature · 6 lines
2.5.5

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#5 lore raw
Quoted 8 lines · Petri Latvala

The series LGTM.

Can you resend the whole series and slap a revert of 1385b31d9371fae02af2fd8adb0d9ea86a5bb0f2 at the end? With a pass of CI on such a bunch this series is

Did a manual build-test on CI's builder with the revert and pushed the series.

Signature · 5 lines
Petri Latvala
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#6 lore raw

✓ Fi.CI.BAT: success for series starting with [1/4] lib: Add igt_can_fail()

In reply to Daniel Vetter
== Series Details ==

== Series Details ==

Series: series starting with [1/4] lib: Add igt_can_fail()
URL : https://patchwork.freedesktop.org/series/28745/
State : success

== Summary ==

IGT patchset tested on top of latest successful build 0c514b0cb876fb578afb2bb0297579bc896251d8 configure.ac: bump libdrm requirement to 2.4.82

with latest DRM-Tip kernel build CI_DRM_2956
7a620d02bd0a drm-tip: 2017y-08m-14d-09h-26m-51s UTC integration manifest

Test gem_exec_parallel:

        Subgroup basic:
                fail       -> PASS       (fi-ilk-650) fdo#101735
Test gem_ringfill:
        Subgroup basic-default:
                skip       -> PASS       (fi-bsw-n3050) fdo#101915
Test kms_pipe_crc_basic:
        Subgroup suspend-read-crc-pipe-b:
                dmesg-warn -> PASS       (fi-byt-n2820) fdo#101705

fdo#101735 https://bugs.freedesktop.org/show_bug.cgi?id=101735
fdo#101915 https://bugs.freedesktop.org/show_bug.cgi?id=101915
fdo#101705 https://bugs.freedesktop.org/show_bug.cgi?id=101705

fi-bdw-5557u     total:279  pass:268  dwarn:0   dfail:0   fail:0   skip:11  time:448s
fi-bdw-gvtdvm    total:279  pass:265  dwarn:0   dfail:0   fail:0   skip:14  time:433s
fi-blb-e6850     total:279  pass:224  dwarn:1   dfail:0   fail:0   skip:54  time:353s
fi-bsw-n3050     total:279  pass:243  dwarn:0   dfail:0   fail:0   skip:36  time:544s
fi-bxt-j4205     total:279  pass:260  dwarn:0   dfail:0   fail:0   skip:19  time:522s
fi-byt-j1900     total:279  pass:254  dwarn:1   dfail:0   fail:0   skip:24  time:516s
fi-byt-n2820     total:279  pass:251  dwarn:0   dfail:0   fail:0   skip:28  time:517s
fi-glk-2a        total:279  pass:260  dwarn:0   dfail:0   fail:0   skip:19  time:612s
fi-hsw-4770      total:279  pass:263  dwarn:0   dfail:0   fail:0   skip:16  time:446s
fi-hsw-4770r     total:279  pass:263  dwarn:0   dfail:0   fail:0   skip:16  time:419s
fi-ilk-650       total:279  pass:229  dwarn:0   dfail:0   fail:0   skip:50  time:421s
fi-ivb-3520m     total:279  pass:261  dwarn:0   dfail:0   fail:0   skip:18  time:497s
fi-ivb-3770      total:279  pass:261  dwarn:0   dfail:0   fail:0   skip:18  time:478s
fi-kbl-7500u     total:279  pass:261  dwarn:0   dfail:0   fail:0   skip:18  time:474s
fi-kbl-7560u     total:279  pass:269  dwarn:0   dfail:0   fail:0   skip:10  time:581s
fi-kbl-r         total:279  pass:261  dwarn:0   dfail:0   fail:0   skip:18  time:586s
fi-pnv-d510      total:279  pass:223  dwarn:1   dfail:0   fail:0   skip:55  time:529s
fi-skl-6260u     total:279  pass:269  dwarn:0   dfail:0   fail:0   skip:10  time:462s
fi-skl-6700k     total:279  pass:261  dwarn:0   dfail:0   fail:0   skip:18  time:478s
fi-skl-6770hq    total:279  pass:269  dwarn:0   dfail:0   fail:0   skip:10  time:482s
fi-skl-gvtdvm    total:279  pass:266  dwarn:0   dfail:0   fail:0   skip:13  time:438s
fi-skl-x1585l    total:279  pass:269  dwarn:0   dfail:0   fail:0   skip:10  time:498s
fi-snb-2520m     total:279  pass:251  dwarn:0   dfail:0   fail:0   skip:28  time:551s
fi-snb-2600      total:279  pass:250  dwarn:0   dfail:0   fail:0   skip:29  time:406s

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_61/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx