From: Steinar H. Gunderson Date: Wed, 15 Mar 2017 19:03:05 +0000 (+0100) Subject: Loosen a test bound slightly for the benefit of NVIDIA cards. X-Git-Tag: 1.5.0~1 X-Git-Url: https://git.sesse.net/?p=movit;a=commitdiff_plain;h=e720fac843d5882fb071221f765a59f91f923739;hp=4f52c8e16cc4d99da79d384f45f5b3a6fab40d87 Loosen a test bound slightly for the benefit of NVIDIA cards. --- diff --git a/ycbcr_conversion_effect_test.cpp b/ycbcr_conversion_effect_test.cpp index 27a10e3..6bac556 100644 --- a/ycbcr_conversion_effect_test.cpp +++ b/ycbcr_conversion_effect_test.cpp @@ -619,7 +619,9 @@ TEST(YCbCrConversionEffectTest, TenBitOutputInSixteen) { tester.add_ycbcr_output(format, OUTPUT_ALPHA_FORMAT_POSTMULTIPLIED, ycbcr_format, YCBCR_OUTPUT_INTERLEAVED, GL_UNSIGNED_SHORT); tester.run(out_data, GL_RGBA, COLORSPACE_sRGB, GAMMA_sRGB); - expect_equal(expected_data, out_data, 4 * width, height); + // Add some slight leeway for the benefit of cards that don't + // round correctly (would be fixed by DitherEffect if we had dither). + expect_equal(expected_data, out_data, 4 * width, height, 2); } } // namespace movit