All of lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/kms_frontbuffer_tracking: Accept missing FBC debugfs files
@ 2021-11-24 15:12 Ville Syrjala
  2021-11-24 15:25 ` Petri Latvala
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Ville Syrjala @ 2021-11-24 15:12 UTC (permalink / raw)
  To: igt-dev

From: Ville Syrjälä <ville.syrjala@linux.intel.com>

With multiple FBC instances becoming a thing at some point
the current plan is to go with separate debugfs files for
each FBC instance. Which also means that if there is no
FBC there will be no debugfs files either. Adapt the test
to tolerate such conditions.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 tests/i915/kms_frontbuffer_tracking.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/i915/kms_frontbuffer_tracking.c b/tests/i915/kms_frontbuffer_tracking.c
index d6a884926c48..532bfbb9b481 100644
--- a/tests/i915/kms_frontbuffer_tracking.c
+++ b/tests/i915/kms_frontbuffer_tracking.c
@@ -724,7 +724,7 @@ static void __debugfs_read(const char *param, char *buf, int len)
 {
 	len = igt_debugfs_simple_read(drm.debugfs, param, buf, len);
 	if (len < 0)
-		igt_assert_eq(len, -ENODEV);
+		igt_assert(len == -ENOENT || len == -ENODEV);
 }
 
 static int __debugfs_write(const char *param, char *buf, int len)
-- 
2.32.0

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

end of thread, other threads:[~2021-11-25 10:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-24 15:12 [igt-dev] [PATCH i-g-t] tests/kms_frontbuffer_tracking: Accept missing FBC debugfs files Ville Syrjala
2021-11-24 15:25 ` Petri Latvala
2021-11-25  9:50   ` Ville Syrjälä
2021-11-25  9:59     ` Petri Latvala
2021-11-25 10:09       ` Ville Syrjälä
2021-11-25 10:24         ` Petri Latvala
2021-11-24 16:42 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2021-11-24 18:23 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.