[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-igt-dev
Subject:    [igt-dev] [i-g-t] tests/intel/kms_pm_lpsp: Fix test constraint for bigjoiner
From:       Bhanuprakash Modem <bhanuprakash.modem () intel ! com>
Date:       2023-10-31 11:16:24
Message-ID: 20231031110424.4127934-1-bhanuprakash.modem () intel ! com
[Download RAW message or body]

If there is no Bigjoiner involved, the test constraint returns
'false', which causes the test to be skipped. Fix the test
constraint logic to handle both bigjoiner & non-bigjoiner cases.

Fixes: https://gitlab.freedesktop.org/drm/intel/-/issues/9340
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
---
 tests/intel/kms_pm_lpsp.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/intel/kms_pm_lpsp.c b/tests/intel/kms_pm_lpsp.c
index cb3c3e379..a85e4e795 100644
--- a/tests/intel/kms_pm_lpsp.c
+++ b/tests/intel/kms_pm_lpsp.c
@@ -174,9 +174,11 @@ static bool test_constraint(data_t *data)
 
 			return true;
 		}
+
+		return false;
 	}
 
-	return false;
+	return true;
 }
 
 static void test_lpsp(data_t *data)
-- 
2.40.0

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic