summaryrefslogtreecommitdiff
path: root/tests/kms_content_protection.c
diff options
context:
space:
mode:
authorMark Yacoub <markyacoub@google.com>2021-06-07 14:31:10 -0400
committerRodrigo Siqueira <Rodrigo.Siqueira@amd.com>2021-06-16 17:57:14 -0400
commit009f5a68be0c46cfc85284197caa08085711fa41 (patch)
treee3e6000f92a39f8fd5db71baee054874f2613be0 /tests/kms_content_protection.c
parent61ba2ed489540e6a8a649be38abb075b3ab4d28a (diff)
tests/kms_content_protection: Skip on hdcp_sink_capability is not found.
[Why] In some configurations such as kernel 5.4 on Zork with no DP connected, debugfs will not contain hdcp_sink_capability file. [How] Check for hdcp_sink_capability but skip the test if file is not found. Tested on ChromeOS Zork Kernel 5.4 Signed-off-by: Mark Yacoub <markyacoub@chromium.org> Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Diffstat (limited to 'tests/kms_content_protection.c')
-rw-r--r--tests/kms_content_protection.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/kms_content_protection.c b/tests/kms_content_protection.c
index 1d1a439a..a0a136da 100644
--- a/tests/kms_content_protection.c
+++ b/tests/kms_content_protection.c
@@ -402,6 +402,7 @@ static void test_content_protection_on_output(igt_output_t *output,
static void __debugfs_read(int fd, const char *param, char *buf, int len)
{
len = igt_debugfs_simple_read(fd, param, buf, len);
+ igt_require(len != -ENOENT);
if (len < 0)
igt_assert_eq(len, -ENODEV);
}