[PATCH i-g-t] tests/perf: Skip over REPORT_LOST
don.hiatt at intel.com
don.hiatt at intel.com
Fri Oct 18 17:13:24 UTC 2019
From: Don Hiatt <don.hiatt at intel.com>
mwa's suggested fix for fdo#103183
Signed-off-by: Don Hiatt <don.hiatt at intel.com>
---
tests/perf.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/tests/perf.c b/tests/perf.c
index 5ad8b2dbb68d..2cf6cc9f0612 100644
--- a/tests/perf.c
+++ b/tests/perf.c
@@ -2667,7 +2667,13 @@ test_short_reads(void)
/* A read that can't return a single record because it would result
* in a fault on buffer overrun should result in an EFAULT error...
*/
- ret = read(stream_fd, pages + page_size - 16, page_size);
+ do {
+ header = (void *)(pages + page_size - 16);
+ ret = read(stream_fd,
+ header,
+ page_size);
+ } while (header->type == DRM_I915_PERF_RECORD_OA_REPORT_LOST);
+
igt_assert_eq(ret, -1);
igt_assert_eq(errno, EFAULT);
--
2.20.1
More information about the Intel-gfx-trybot
mailing list