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:
4eb37bf
)
tests/pm_pc8: try to modprobe i2c-dev
author
Paulo Zanoni
<paulo.r.zanoni@intel.com>
Thu, 20 Feb 2014 20:45:53 +0000
(17:45 -0300)
committer
Paulo Zanoni
<paulo.r.zanoni@intel.com>
Fri, 21 Feb 2014 13:08:35 +0000
(10:08 -0300)
Just in case the module is compiled with M instead of Y. If the module
is not there, the other assertions will catch the problem.
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
tests/pm_pc8.c
patch
|
blob
|
history
diff --git
a/tests/pm_pc8.c
b/tests/pm_pc8.c
index
1c85973
..
9561b4a
100644
(file)
--- a/
tests/pm_pc8.c
+++ b/
tests/pm_pc8.c
@@
-875,6
+875,8
@@
static void i2c_subtest_check_environment(void)
struct dirent *dirent;
/* Make sure the /dev/i2c-* files exist. */
+ igt_assert(system("modprobe -q i2c-dev > /dev/null 2>&1") != -1);
+
dev_dir = opendir("/dev");
igt_assert(dev_dir);
while ((dirent = readdir(dev_dir))) {