diff --git a/tests/unit/s2n_pq_kem_kyber_available_awslc.c b/tests/unit/s2n_pq_kem_kyber_available_awslc.c index b02d1ab345c..285f1dcd068 100644 --- a/tests/unit/s2n_pq_kem_kyber_available_awslc.c +++ b/tests/unit/s2n_pq_kem_kyber_available_awslc.c @@ -20,8 +20,10 @@ int main() { BEGIN_TEST(); - if (s2n_libcrypto_is_awslc()) { + if (s2n_libcrypto_is_awslc() && s2n_pq_is_enabled()) { EXPECT_TRUE(s2n_libcrypto_supports_kyber_512()); + } else { + EXPECT_FALSE(s2n_libcrypto_supports_kyber_512()); } END_TEST(); }