summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2013-11-08 17:00:40 -0200
committerPaulo Zanoni <paulo.r.zanoni@intel.com>2013-11-08 18:40:22 -0200
commit514efb507d5bb1cd8774b25f4419c948b575a36b (patch)
tree4d4a30bd7bc18c77e6597c490a2cf52c613464cd
parentffc43fcbc0bcd4f7b15afa204723876e258e4bc4 (diff)
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>
-rw-r--r--tests/pm_pc8.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/pm_pc8.c b/tests/pm_pc8.c
index e56a5f8c..4ecfdfdf 100644
--- a/tests/pm_pc8.c
+++ b/tests/pm_pc8.c
@@ -629,6 +629,13 @@ static void setup_environment(void)
"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)
{
/* 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
* 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