mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 01:16:18 +00:00
lib/drmtest: skip when prefault control isn't available
Instead of crashing with an igt_assert. Fixes the only crashing test when running igt on non-intel systems. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
2b218f69d7
commit
b3a61c8028
@ -2040,7 +2040,7 @@ static void igt_prefault_control(bool enable)
|
||||
else
|
||||
index = 0;
|
||||
|
||||
igt_assert(write(fd, &buf[index], 1) == 1);
|
||||
igt_require(write(fd, &buf[index], 1) == 1);
|
||||
|
||||
close(fd);
|
||||
}
|
||||
@ -2059,7 +2059,7 @@ void igt_disable_prefault(void)
|
||||
|
||||
void igt_enable_prefault(void)
|
||||
{
|
||||
return igt_prefault_control(true);
|
||||
igt_prefault_control(true);
|
||||
}
|
||||
|
||||
void igt_system_suspend_autoresume(void)
|
||||
|
Loading…
x
Reference in New Issue
Block a user