diff options
Diffstat (limited to 'tests/gem_evict_alignment.c')
-rw-r--r-- | tests/gem_evict_alignment.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/gem_evict_alignment.c b/tests/gem_evict_alignment.c index 43d39ed5..0ec58099 100644 --- a/tests/gem_evict_alignment.c +++ b/tests/gem_evict_alignment.c @@ -222,6 +222,21 @@ igt_main count = 4; major_evictions(fd, size, count); } + + if (igt_fork_hang_helper()) { + igt_subtest("minor-hang") { + size = 1024 * 1024; + count = 3*gem_aperture_size(fd) / size / 4; + minor_evictions(fd, size, count); + } + + igt_subtest("major-hang") { + size = 3*gem_aperture_size(fd) / 4; + count = 4; + major_evictions(fd, size, count); + } + igt_stop_hang_helper(); + } igt_stop_signal_helper(); igt_fixture |