aboutsummaryrefslogtreecommitdiff
path: root/src/dsp/mask_blend_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/dsp/mask_blend_test.cc')
-rw-r--r--src/dsp/mask_blend_test.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dsp/mask_blend_test.cc b/src/dsp/mask_blend_test.cc
index 29dd43b..06793e5 100644
--- a/src/dsp/mask_blend_test.cc
+++ b/src/dsp/mask_blend_test.cc
@@ -270,9 +270,8 @@ class MaskBlendTest : public testing::TestWithParam<MaskBlendTestParam>,
} else if (absl::StartsWith(test_case, "NEON/")) {
MaskBlendInit_NEON();
} else if (absl::StartsWith(test_case, "SSE41/")) {
- if ((GetCpuInfo() & kSSE4_1) != 0) {
- MaskBlendInit_SSE4_1();
- }
+ if ((GetCpuInfo() & kSSE4_1) == 0) GTEST_SKIP() << "No SSE4.1 support!";
+ MaskBlendInit_SSE4_1();
} else {
FAIL() << "Unrecognized architecture prefix in test case name: "
<< test_case;
@@ -427,6 +426,7 @@ void MaskBlendTest<bitdepth, Pixel>::Test(const char* const digest,
if (bitdepth != 8) {
ASSERT_EQ(func_8bpp_, nullptr);
}
+ ASSERT_NE(func_, nullptr);
func_(source1_, source2_, src_2_stride, mask_, mask_stride, width, height,
dest_, kDestStride);
}