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>
This commit is contained in:
Paulo Zanoni 2014-02-20 17:45:53 -03:00
parent 4eb37bf4c1
commit 41267dca3c

View File

@ -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))) {