Re: [igt-dev] [Intel-gfx] [RFT i-g-t 1/2] tests/gem_shrink: Background, direct and OOM shrinker plus userptr tests

Chris Wilson
2018-12-07T10:17:54Z

Quoting Tvrtko Ursulin (2018-12-07 10:14:53)
> +static void trigger_oom(void)
> +{
> + const char *cmd = "f";
> + int fd;
> +
> + fd = open("/proc/sysrq-trigger", O_WRONLY);
> + igt_assert_fd(fd);

/proc/sysrq-trigger may not exist. subgroup fixture igt_require?
-Chris