From 0a45d6ba1371bb879f55d9f75d893552c2f71c97 Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Fri, 12 Feb 2016 15:26:10 +0200 Subject: tests/prime_mmap: Encapsulate check_for_dma_buf_mmap() in igt_fixture. This unbreaks distcheck target that in turn runs each test with --list-subtests. Signed-off-by: Marius Vlad --- tests/prime_mmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/prime_mmap.c') diff --git a/tests/prime_mmap.c b/tests/prime_mmap.c index 29a0cfd5..1ea61c2f 100644 --- a/tests/prime_mmap.c +++ b/tests/prime_mmap.c @@ -504,10 +504,10 @@ igt_main igt_fixture { fd = drm_open_driver(DRIVER_INTEL); + igt_skip_on((check_for_dma_buf_mmap() != 0)); errno = 0; } - igt_skip_on((check_for_dma_buf_mmap() != 0)); for (i = 0; i < ARRAY_SIZE(tests); i++) { igt_subtest(tests[i].name) -- cgit v1.2.3