From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1292C6EACE for ; Thu, 12 Mar 2020 14:04:53 +0000 (UTC) From: Anshuman Gupta Date: Thu, 12 Mar 2020 19:26:41 +0530 Message-Id: <20200312135642.13845-5-anshuman.gupta@intel.com> In-Reply-To: <20200312135642.13845-1-anshuman.gupta@intel.com> References: <20200312135642.13845-1-anshuman.gupta@intel.com> MIME-Version: 1.0 Subject: [igt-dev] [PATCH i-g-t 4/5] tests/i915_pm_lpsp: screens-disabled subtest use igt_wait List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: igt-dev@lists.freedesktop.org Cc: jani.nikula@intel.com List-ID: Some times delayed audio codec disabling causes failure of test, using igt_wait to check lpsp after disabling all screen. Signed-off-by: Anshuman Gupta --- tests/i915/i915_pm_lpsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/i915/i915_pm_lpsp.c b/tests/i915/i915_pm_lpsp.c index 972f6feb..3e8d7568 100644 --- a/tests/i915/i915_pm_lpsp.c +++ b/tests/i915/i915_pm_lpsp.c @@ -83,7 +83,7 @@ static void screens_disabled_subtest(data_t *data, drmModeResPtr drm_res) kmstest_unset_all_crtcs(data->drm_fd, drm_res); for_each_connected_output(&data->display, output) { data->output = output; - igt_assert(lpsp_is_enabled(data)); + igt_assert(igt_wait(lpsp_is_enabled(data), 1000, 100)); } } -- 2.25.1 _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev