projects
/
profile
/
extras
/
intel-gpu-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b218f6
)
lib/drmtest: skip when prefault control isn't available
author
Daniel Vetter
<daniel.vetter@ffwll.ch>
Wed, 11 Sep 2013 08:47:07 +0000
(10:47 +0200)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Wed, 11 Sep 2013 08:47:07 +0000
(10:47 +0200)
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>
lib/drmtest.c
patch
|
blob
|
history
diff --git
a/lib/drmtest.c
b/lib/drmtest.c
index
ee74aa0
..
f1ee13c
100644
(file)
--- a/
lib/drmtest.c
+++ b/
lib/drmtest.c
@@
-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)