mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-20 14:26:17 +00:00
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>
This commit is contained in:
parent
83cfed8c39
commit
22674ae88b
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user