mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-13 02:46:23 +00:00
tests/pm_pc8: extract i2c_subtest_check_environment
Just to make it more organized and consistent with the other tests. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
This commit is contained in:
parent
2fd0eb53aa
commit
1bcae02e5c
@ -711,8 +711,7 @@ static void batch_subtest(void)
|
|||||||
igt_assert(pc8_plus_enabled());
|
igt_assert(pc8_plus_enabled());
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Try to use raw I2C, which also needs interrupts. */
|
static void i2c_subtest_check_environment(void)
|
||||||
static void i2c_subtest(void)
|
|
||||||
{
|
{
|
||||||
int i2c_dev_files = 0;
|
int i2c_dev_files = 0;
|
||||||
DIR *dev_dir;
|
DIR *dev_dir;
|
||||||
@ -727,6 +726,12 @@ static void i2c_subtest(void)
|
|||||||
}
|
}
|
||||||
closedir(dev_dir);
|
closedir(dev_dir);
|
||||||
igt_require(i2c_dev_files);
|
igt_require(i2c_dev_files);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Try to use raw I2C, which also needs interrupts. */
|
||||||
|
static void i2c_subtest(void)
|
||||||
|
{
|
||||||
|
i2c_subtest_check_environment();
|
||||||
|
|
||||||
enable_one_screen(&ms_data);
|
enable_one_screen(&ms_data);
|
||||||
igt_assert(pc8_plus_disabled());
|
igt_assert(pc8_plus_disabled());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user