summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2014-02-20 17:45:53 -0300
committerPaulo Zanoni <paulo.r.zanoni@intel.com>2014-02-21 10:08:35 -0300
commit41267dca3cd62a49b7a7434e12b4f1164d95454b (patch)
tree69bb16ec32f56d2e51dc084b3f4caaba8311c7af /tests
parent4eb37bf4c130fe1264c7f63e30faff3a76cd093d (diff)
tests/pm_pc8: try to modprobe i2c-dev
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>
Diffstat (limited to 'tests')
-rw-r--r--tests/pm_pc8.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/pm_pc8.c b/tests/pm_pc8.c
index 1c859735..9561b4a6 100644
--- 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))) {