From 22674ae88bb1302a3d6326d908f593e46e3564c1 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 19 Mar 2016 14:57:10 +0000 Subject: igt/prime_mmap_coherency: Speed up interruptible testing Use the new fangled igt_interruptible() to limit the number of passes we require when performing signal injection. Signed-off-by: Chris Wilson --- tests/prime_mmap_coherency.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'tests/prime_mmap_coherency.c') diff --git a/tests/prime_mmap_coherency.c b/tests/prime_mmap_coherency.c index 4a07bea2..5cacdc5d 100644 --- a/tests/prime_mmap_coherency.c +++ b/tests/prime_mmap_coherency.c @@ -262,7 +262,6 @@ static void test_ioctl_errors(void) /* Ensure we can do at least one child */ intel_require_memory(2, width*height*4, CHECK_RAM); - igt_fork_signal_helper(); for (int num_children = 1; num_children <= 8 *ncpus; num_children <<= 1) { uint64_t required, total; @@ -277,14 +276,10 @@ static void test_ioctl_errors(void) break; } - igt_fork(child, num_children) { - struct timespec start = {}; - while (igt_seconds_elapsed(&start) <= num_children) - blit_and_cmp(); - } + igt_fork(child, num_children) + igt_interruptible(true) blit_and_cmp(); igt_waitchildren(); } - igt_stop_signal_helper(); } int main(int argc, char **argv) -- cgit v1.2.3