Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by gabe.freedesktop.org (Postfix) with ESMTPS id 442366EB27 for ; Wed, 24 Nov 2021 15:12:49 +0000 (UTC) From: Ville Syrjala Date: Wed, 24 Nov 2021 17:12:45 +0200 Message-Id: <20211124151245.29369-1-ville.syrjala@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t] tests/kms_frontbuffer_tracking: Accept missing FBC debugfs files List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: igt-dev@lists.freedesktop.org List-ID: From: Ville Syrjälä 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ä --- 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