]> granicus.if.org Git - libvpx/commitdiff
vp8_denoiser_sse2_test: use ASSERT instead of EXPECT
authorJames Zern <jzern@google.com>
Wed, 3 Feb 2021 02:14:44 +0000 (18:14 -0800)
committerJames Zern <jzern@google.com>
Wed, 3 Feb 2021 21:14:50 +0000 (13:14 -0800)
when test block contents to avoid producing unnecessary output on
failure.

Bug: webm:1718
Change-Id: Ie2cf8245ec8c03556549ad1eea65c8bef15a9735

test/vp8_denoiser_sse2_test.cc

index 0197f143f3e11edd1a5dbc081ea29b656e2144d8..ae547f007f375b0123b3eeca4418659fa387765f 100644 (file)
@@ -87,7 +87,7 @@ TEST_P(VP8DenoiserTest, BitexactCheck) {
     // Check bitexactness.
     for (int h = 0; h < 16; ++h) {
       for (int w = 0; w < 16; ++w) {
-        EXPECT_EQ(avg_block_c[h * stride + w], avg_block_sse2[h * stride + w]);
+        ASSERT_EQ(avg_block_c[h * stride + w], avg_block_sse2[h * stride + w]);
       }
     }
 
@@ -103,7 +103,7 @@ TEST_P(VP8DenoiserTest, BitexactCheck) {
     // Check bitexactness.
     for (int h = 0; h < 16; ++h) {
       for (int w = 0; w < 16; ++w) {
-        EXPECT_EQ(avg_block_c[h * stride + w], avg_block_sse2[h * stride + w]);
+        ASSERT_EQ(avg_block_c[h * stride + w], avg_block_sse2[h * stride + w]);
       }
     }
   }