summaryrefslogtreecommitdiff
path: root/tests/kms_mmap_write_crc.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2019-02-20 15:24:48 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2019-02-21 00:41:54 +0100
commitda2aa265bb266d427806cd04c748271a3e19f457 (patch)
tree428a6980135d7a41ba306de2ed0ea246d282952e /tests/kms_mmap_write_crc.c
parent3bbdb535438951ffb8eac78abbf4152dcfa2185d (diff)
tests/kms_mmap_write_crc: Fix igt_fixture handling
igt_fixture within an igt_simple_test don't really work as advertised. Minimal fix, the testcase seems fairly questionable already ... References: https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_222/fi-icl-y/igt@kms_mmap_write_crc.html Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'tests/kms_mmap_write_crc.c')
-rw-r--r--tests/kms_mmap_write_crc.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/kms_mmap_write_crc.c b/tests/kms_mmap_write_crc.c
index 93c96ef4..bf2b0c29 100644
--- a/tests/kms_mmap_write_crc.c
+++ b/tests/kms_mmap_write_crc.c
@@ -268,7 +268,8 @@ static data_t data;
int main(int argc, char **argv)
{
int i;
- igt_simple_init_parse_opts(&argc, argv, "n", NULL, NULL, opt_handler, NULL);
+ igt_subtest_init_parse_opts(&argc, argv, "n", NULL, NULL,
+ opt_handler, NULL);
igt_skip_on_simulation();
@@ -286,10 +287,12 @@ int main(int argc, char **argv)
fork_cpuhog_helper();
}
- igt_info("Using %d rounds for the test\n", ROUNDS);
+ igt_subtest("main") {
+ igt_info("Using %d rounds for the test\n", ROUNDS);
- for (i = 0; i < ROUNDS; i++)
- run_test(&data);
+ for (i = 0; i < ROUNDS; i++)
+ run_test(&data);
+ }
igt_fixture {
igt_display_fini(&data.display);