From 41267dca3cd62a49b7a7434e12b4f1164d95454b Mon Sep 17 00:00:00 2001 From: Paulo Zanoni Date: Thu, 20 Feb 2014 17:45:53 -0300 Subject: [PATCH] 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 --- tests/pm_pc8.c | 2 ++ 1 file changed, 2 insertions(+) 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))) {