mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-21 23:06:29 +00:00
tests/pm_pc8: move teardown_environment next to setup_environment
So I can add/remove/verify code more easily. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
This commit is contained in:
parent
ffc43fcbc0
commit
514efb507d
@ -629,6 +629,13 @@ static void setup_environment(void)
|
|||||||
"Machine doesn't support PC8+ residencies.\n");
|
"Machine doesn't support PC8+ residencies.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void teardown_environment(void)
|
||||||
|
{
|
||||||
|
fini_mode_set_data(&ms_data);
|
||||||
|
drmClose(drm_fd);
|
||||||
|
close(msr_fd);
|
||||||
|
}
|
||||||
|
|
||||||
static void basic_subtest(void)
|
static void basic_subtest(void)
|
||||||
{
|
{
|
||||||
/* Make sure PC8+ residencies move! */
|
/* Make sure PC8+ residencies move! */
|
||||||
@ -661,13 +668,6 @@ static void modeset_subtest(enum screen_type type, int rounds,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void teardown_environment(void)
|
|
||||||
{
|
|
||||||
fini_mode_set_data(&ms_data);
|
|
||||||
drmClose(drm_fd);
|
|
||||||
close(msr_fd);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Test of the DRM resources reported by the IOCTLs are still the same. This
|
/* Test of the DRM resources reported by the IOCTLs are still the same. This
|
||||||
* ensures we still see the monitors with the same eyes. We get the EDIDs and
|
* ensures we still see the monitors with the same eyes. We get the EDIDs and
|
||||||
* compare them, which ensures we use DP AUX or GMBUS depending on what's
|
* compare them, which ensures we use DP AUX or GMBUS depending on what's
|
||||||
|
Loading…
x
Reference in New Issue
Block a user