diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-06-13 18:27:59 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-06-13 18:27:59 +0200 |
commit | c9c554594ef074b9149f84da8fb42c9ea629c027 (patch) | |
tree | 08776160580bafff7eeb6af570a44bbe05ddf3b9 /tests/kms_psr_sink_crc.c | |
parent | 87042d671fba3c76786171a8037515979e977d9d (diff) |
tests: run igt.cocci
Re-run with correct igt_fail rules. Again manually fixup missing
includes for igt_core.h.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/kms_psr_sink_crc.c')
-rw-r--r-- | tests/kms_psr_sink_crc.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/kms_psr_sink_crc.c b/tests/kms_psr_sink_crc.c index c2c12d11..006db08f 100644 --- a/tests/kms_psr_sink_crc.c +++ b/tests/kms_psr_sink_crc.c @@ -269,8 +269,8 @@ static bool psr_sink_support(data_t *data) igt_require(file); ret = fscanf(file, "Sink_Support: %s\n", str); - if (ret == 0) - igt_skip("i915_edp_psr_status format not supported by this test case\n"); + igt_skip_on_f(ret == 0, + "i915_edp_psr_status format not supported by this test case\n"); fclose(file); return strcmp(str, "yes") == 0; @@ -381,7 +381,7 @@ static void test_crc(data_t *data) ptr = gem_mmap__gtt(data->drm_fd, handle, 4096, PROT_WRITE); gem_set_domain(data->drm_fd, handle, I915_GEM_DOMAIN_GTT, I915_GEM_DOMAIN_GTT); - fprintf(stdout, "Sleeping for 10 sec...\n"); + igt_info("Sleeping for 10 sec...\n"); sleep(10); memset(ptr, 0xff, 4); munmap(ptr, 4096); @@ -390,12 +390,12 @@ static void test_crc(data_t *data) ptr = gem_mmap__gtt(data->drm_fd, handle, 4096, PROT_WRITE); gem_set_domain(data->drm_fd, handle, I915_GEM_DOMAIN_GTT, I915_GEM_DOMAIN_GTT); - fprintf(stdout, "Sleeping for 10 sec...\n"); + igt_info("Sleeping for 10 sec...\n"); sleep(10); fill_blt(data, handle, 0xff); igt_assert(wait_psr_entry(data, 10)); get_sink_crc(data, ref_crc); - fprintf(stdout, "Sleeping for 10 sec...\n"); + igt_info("Sleeping for 10 sec...\n"); sleep(10); memset(ptr, 0xff, 4); munmap(ptr, 4096); @@ -404,12 +404,12 @@ static void test_crc(data_t *data) ptr = gem_mmap__cpu(data->drm_fd, handle, 4096, PROT_WRITE); gem_set_domain(data->drm_fd, handle, I915_GEM_DOMAIN_CPU, I915_GEM_DOMAIN_CPU); - fprintf(stdout, "Sleeping for 10 sec...\n"); + igt_info("Sleeping for 10 sec...\n"); sleep(10); fill_blt(data, handle, 0xff); igt_assert(wait_psr_entry(data, 10)); get_sink_crc(data, ref_crc); - fprintf(stdout, "Sleeping for 10 sec...\n"); + igt_info("Sleeping for 10 sec...\n"); sleep(10); memset(ptr, 0xff, 4); munmap(ptr, 4096); |