Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [i-g-t] tests/intel/i915_suspend: Fix WARN of invalid fd
@ 2024-01-09 10:27 Bhanuprakash Modem
  2024-01-09 12:19 ` ✗ Fi.CI.BAT: failure for " Patchwork
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Bhanuprakash Modem @ 2024-01-09 10:27 UTC (permalink / raw)
  To: igt-dev

Move "basic-s2idle-without-i915" & "basic-s3-without-i915" to
end of the file to avoid WARNs:

(i915_suspend:7563) drmtest-WARNING: Don't attempt to close standard/invalid file descriptor: -1

Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
---
 tests/intel/i915_suspend.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/tests/intel/i915_suspend.c b/tests/intel/i915_suspend.c
index c25805584..bf5a170d3 100644
--- a/tests/intel/i915_suspend.c
+++ b/tests/intel/i915_suspend.c
@@ -320,14 +320,6 @@ int fd;
 
 igt_main
 {
-	igt_describe("Validate suspend-to-idle without i915 module");
-	igt_subtest("basic-s2idle-without-i915")
-		test_suspend_without_i915(SUSPEND_STATE_FREEZE);
-
-	igt_describe("Validate S3 without i915 module");
-	igt_subtest("basic-s3-without-i915")
-		test_suspend_without_i915(SUSPEND_STATE_S3);
-
 	igt_fixture {
 		/*
 		 * Since above subtests may fail, leaving i915 module unloaded
@@ -384,4 +376,12 @@ igt_main
 
 	igt_fixture
 		drm_close_driver(fd);
+
+	igt_describe("Validate suspend-to-idle without i915 module");
+	igt_subtest("basic-s2idle-without-i915")
+		test_suspend_without_i915(SUSPEND_STATE_FREEZE);
+
+	igt_describe("Validate S3 without i915 module");
+	igt_subtest("basic-s3-without-i915")
+		test_suspend_without_i915(SUSPEND_STATE_S3);
 }
-- 
2.40.0

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-01-09 15:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-09 10:27 [i-g-t] tests/intel/i915_suspend: Fix WARN of invalid fd Bhanuprakash Modem
2024-01-09 12:19 ` ✗ Fi.CI.BAT: failure for " Patchwork
2024-01-09 12:58 ` ✓ CI.xeBAT: success " Patchwork
2024-01-09 13:10 ` [i-g-t V2] " Bhanuprakash Modem
2024-01-09 13:59 ` ✓ Fi.CI.BAT: success for tests/intel/i915_suspend: Fix WARN of invalid fd (rev2) Patchwork
2024-01-09 14:27 ` ✗ CI.xeBAT: failure " Patchwork
2024-01-09 15:34 ` ✗ Fi.CI.IGT: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox