From 30c21ffe7f149c15ae7efdb825bbb6671a7f2e9b Mon Sep 17 00:00:00 2001 From: Paulo Zanoni Date: Thu, 20 Feb 2014 17:47:53 -0300 Subject: [PATCH] tests/pm_pc8: try to modprobe msr Just in case it's compile 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 9561b4a6..7ae0dd25 100644 --- a/tests/pm_pc8.c +++ b/tests/pm_pc8.c @@ -687,6 +687,8 @@ static void setup_pc8(void) return; /* Make sure our Kernel supports MSR and the module is loaded. */ + igt_assert(system("modprobe -q msr > /dev/null 2>&1") != -1); + msr_fd = open("/dev/cpu/0/msr", O_RDONLY); igt_assert_f(msr_fd >= 0, "Can't open /dev/cpu/0/msr.\n");