public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t v2] tests/kms_flip: improve logging when timing out
@ 2019-06-17 12:57 Simon Ser
  2019-06-17 14:33 ` [igt-dev] ✗ Fi.CI.BAT: failure for tests/kms_flip: improve logging when timing out (rev2) Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Simon Ser @ 2019-06-17 12:57 UTC (permalink / raw)
  To: igt-dev; +Cc: martin.peres

Signed-off-by: Simon Ser <simon.ser@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105363
---

v2: clarify log message

 tests/kms_flip.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/tests/kms_flip.c b/tests/kms_flip.c
index 2a158d97bbec..6eadb71b3ed9 100755
--- a/tests/kms_flip.c
+++ b/tests/kms_flip.c
@@ -686,14 +686,17 @@ static unsigned int run_test_step(struct test_output *o)
 	    !(o->pending_events & EVENT_VBLANK) && o->flip_state.count > 0) {
 		struct vblank_reply reply;
 		unsigned int exp_seq;
-		unsigned long start;
+		unsigned long start, end;

 		exp_seq = o->flip_state.current_seq;
 		start = gettime_us();
 		do_or_die(__wait_for_vblank(TEST_VBLANK_ABSOLUTE |
 					    TEST_VBLANK_BLOCK, o->pipe, exp_seq,
 					    0, &reply));
-		igt_assert(gettime_us() - start < 500);
+		end = gettime_us();
+		igt_assert_f(end - start < 500, "Vblank wait took longer than "
+			     "expected: %luus >= %dus",
+			     end - start, 500);
 		igt_assert_eq(reply.sequence, exp_seq);
 		igt_assert(timercmp(&reply.ts, &o->flip_state.last_ts, ==));
 	}
--
2.22.0

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-06-19 14:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-17 12:57 [igt-dev] [PATCH i-g-t v2] tests/kms_flip: improve logging when timing out Simon Ser
2019-06-17 14:33 ` [igt-dev] ✗ Fi.CI.BAT: failure for tests/kms_flip: improve logging when timing out (rev2) Patchwork
2019-06-17 14:49   ` Ser, Simon
2019-06-17 15:17 ` Patchwork
2019-06-19 14:44 ` [igt-dev] [PATCH i-g-t v2] tests/kms_flip: improve logging when timing out Arkadiusz Hiler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox