diff options
author | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2015-03-13 12:28:07 -0400 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2015-04-16 11:08:37 -0700 |
commit | fd9ef1b8c87e0016c8820aed0d42542894430b85 (patch) | |
tree | 22b24328ddadf38f6beab5e2914157562e22faba /tests/kms_psr_sink_crc.c | |
parent | ae9c685133c5a1f30418d6fda1ce898c11c7053c (diff) |
tests/kms_psr_sink_crc: remove timeout option from wait_psr_entry.
No functional changes. Just making timeout unique for any case.
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'tests/kms_psr_sink_crc.c')
-rw-r--r-- | tests/kms_psr_sink_crc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/kms_psr_sink_crc.c b/tests/kms_psr_sink_crc.c index 7558b6d8..c298245b 100644 --- a/tests/kms_psr_sink_crc.c +++ b/tests/kms_psr_sink_crc.c @@ -245,8 +245,9 @@ static bool psr_active(data_t *data) return strcmp(str, "yes") == 0; } -static bool wait_psr_entry(data_t *data, int timeout) +static bool wait_psr_entry(data_t *data) { + int timeout = 10; while (timeout--) { if (psr_active(data)) return true; @@ -337,7 +338,7 @@ static void test_crc(data_t *data) assert_or_manual(is_green(ref_crc), "screen GREEN"); /* Confirm screen stays Green after PSR got active */ - igt_assert(wait_psr_entry(data, 10)); + igt_assert(wait_psr_entry(data)); get_sink_crc(data, ref_crc); assert_or_manual(is_green(ref_crc), "screen GREEN"); @@ -351,7 +352,7 @@ static void test_crc(data_t *data) igt_display_commit(&data->display); /* Confirm it is not Green anymore */ - igt_assert(wait_psr_entry(data, 10)); + igt_assert(wait_psr_entry(data)); get_sink_crc(data, ref_crc); if (data->test_plane == PRIMARY) assert_or_manual(!is_green(ref_crc), "screen WHITE"); |