diff options
author | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2014-02-20 17:47:53 -0300 |
---|---|---|
committer | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2014-02-21 10:09:00 -0300 |
commit | 30c21ffe7f149c15ae7efdb825bbb6671a7f2e9b (patch) | |
tree | 7cfd71ab4b45d9d8bbb207c778744dd8a7b40ccc /tests | |
parent | 41267dca3cd62a49b7a7434e12b4f1164d95454b (diff) |
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 <paulo.r.zanoni@intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pm_pc8.c | 2 |
1 files changed, 2 insertions, 0 deletions
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"); |