summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/kms_content_protection.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/kms_content_protection.c b/tests/kms_content_protection.c
index 7fc8542e..ae6ab497 100644
--- a/tests/kms_content_protection.c
+++ b/tests/kms_content_protection.c
@@ -212,6 +212,10 @@ static void test_cp_enable_with_retry(igt_output_t *output,
if (!ret && --retry)
igt_debug("Retry (%d/2) ...\n", 3 - retry);
} while (retry && !ret);
+
+ if (!ret)
+ test_cp_disable(output, s);
+
igt_assert_f(ret, "Content Protection not enabled\n");
}