From 97dc33638b40a428ce666d61d71ee3db08083bf3 Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Fri, 26 Jan 2024 11:16:21 -0500 Subject: [PATCH] Fix SHA ABI tests Some 'return' lines snuck in which cause us to skip some tests. Change-Id: I2806d6fb4fe3a6bd1fa58932c213d6af8991352e Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/65827 Reviewed-by: Bob Beck Commit-Queue: David Benjamin --- crypto/fipsmodule/sha/sha_test.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/crypto/fipsmodule/sha/sha_test.cc b/crypto/fipsmodule/sha/sha_test.cc index 671c170f9..5624288f6 100644 --- a/crypto/fipsmodule/sha/sha_test.cc +++ b/crypto/fipsmodule/sha/sha_test.cc @@ -66,13 +66,11 @@ TEST(SHATest, SHA1ABI) { #if defined(SHA1_ASM_AVX) if (sha1_avx_capable()) { CHECK_ABI(sha1_block_data_order_avx, ctx.h, kBuf, blocks); - return; } #endif #if defined(SHA1_ASM_SSSE3) if (sha1_ssse3_capable()) { CHECK_ABI(sha1_block_data_order_ssse3, ctx.h, kBuf, blocks); - return; } #endif #if defined(SHA1_ASM_NEON) @@ -103,13 +101,11 @@ TEST(SHATest, SHA256ABI) { #if defined(SHA256_ASM_AVX) if (sha256_avx_capable()) { CHECK_ABI(sha256_block_data_order_avx, ctx.h, kBuf, blocks); - return; } #endif #if defined(SHA256_ASM_SSSE3) if (sha256_ssse3_capable()) { CHECK_ABI(sha256_block_data_order_ssse3, ctx.h, kBuf, blocks); - return; } #endif #if defined(SHA256_ASM_NEON)