diff --git a/libwvdrmengine/oemcrypto/test/oemcrypto_cast_test.h b/libwvdrmengine/oemcrypto/test/oemcrypto_cast_test.h index 897148c1..6c9c7269 100644 --- a/libwvdrmengine/oemcrypto/test/oemcrypto_cast_test.h +++ b/libwvdrmengine/oemcrypto/test/oemcrypto_cast_test.h @@ -73,6 +73,9 @@ class OEMCryptoLoadsCertificateAlternates : public OEMCryptoLoadsCertificate { // If force is true, we assert that the key loads successfully. void LoadCastCertificateKey(bool force) { + if (!wvoec::global_features.cast_receiver) { + GTEST_SKIP() << "Cast not supported"; + } // Padding scheme used to sign cast data. constexpr uint32_t schemes = kSign_PKCS1_Block1; // prov 2 or prov 3