summaryrefslogtreecommitdiff
path: root/tests/perf.c
diff options
context:
space:
mode:
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>2018-02-22 01:37:26 +0000
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>2018-02-22 13:18:36 +0000
commit70254d180b13a6bd1c6ae3f425a9cd2642da8392 (patch)
tree1e256be0163f3f8115b335bf3b324b72b341886b /tests/perf.c
parent813ed5beb507cee596337b9abd584bcbbd8a172c (diff)
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 <lionel.g.landwerlin@intel.com> Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Diffstat (limited to 'tests/perf.c')
-rw-r--r--tests/perf.c2
1 files changed, 1 insertions, 1 deletions
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);