From 70254d180b13a6bd1c6ae3f425a9cd2642da8392 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Thu, 22 Feb 2018 01:37:26 +0000 Subject: test/perf: fixup inverted condition The previous patch said : "verify that the time is always longer or equal to the period we've asked for" This is an obvious error, it only worked on my machine and the CI because only one longer period was observed. But another CI run caught the issue : https://intel-gfx-ci.01.org/tree/drm-tip/IGT_4280/shard-glkb6/igt@perf@oa-exponents.html Fixes: c3d11ca104fa ("tests/perf: make oa-exponents subtest more reliable") Signed-off-by: Lionel Landwerlin Reviewed-by: Matthew Auld --- tests/perf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/perf.c b/tests/perf.c index 05108f5a..c302a355 100644 --- a/tests/perf.c +++ b/tests/perf.c @@ -1795,7 +1795,7 @@ test_oa_exponents(void) oa_report_get_ctx_id(timer_reports[i].report), delta, delta == expected_timestamp_delta ? "" : "******"); - matches += expected_timestamp_delta >= delta; + matches += expected_timestamp_delta <= delta; } igt_debug("matches=%u/%u\n", matches, n_timer_reports - 1); -- cgit v1.2.3