summaryrefslogtreecommitdiff
path: root/tests/prime_mmap_coherency.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-03-19 14:57:10 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2016-03-19 15:21:28 +0000
commit22674ae88bb1302a3d6326d908f593e46e3564c1 (patch)
tree2af041e9324bbcff03013b289b4ff509a6ff9b98 /tests/prime_mmap_coherency.c
parent83cfed8c396a0a5b08c498829fe68d2b10af8425 (diff)
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 <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/prime_mmap_coherency.c')
-rw-r--r--tests/prime_mmap_coherency.c9
1 files changed, 2 insertions, 7 deletions
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)