From: Steinar H. Gunderson Date: Thu, 20 Mar 2014 20:14:22 +0000 (+0100) Subject: Add a few check_error() calls. X-Git-Tag: 1.1~12^2~25 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=ab89030be6f55cd1955b9e033c62c2e3c3ba2a2f;hp=de9c0e36aae9272c57596541de19790686669b25;p=movit Add a few check_error() calls. --- diff --git a/dither_effect_test.cpp b/dither_effect_test.cpp index 210a2e7..1b72ecb 100644 --- a/dither_effect_test.cpp +++ b/dither_effect_test.cpp @@ -7,6 +7,7 @@ #include "gtest/gtest.h" #include "image_format.h" #include "test_util.h" +#include "util.h" namespace movit { @@ -28,8 +29,11 @@ TEST(DitherEffectTest, NoDitherOnExactValues) { unsigned char out_data[size * size]; EffectChainTester tester(data, size, size, FORMAT_GRAYSCALE, COLORSPACE_sRGB, GAMMA_LINEAR, GL_RGBA8); + check_error(); tester.get_chain()->set_dither_bits(8); + check_error(); tester.run(out_data, GL_RED, COLORSPACE_sRGB, GAMMA_LINEAR); + check_error(); expect_equal(expected_data, out_data, size, size); } diff --git a/effect_chain_test.cpp b/effect_chain_test.cpp index 70701b3..f50d2ea 100644 --- a/effect_chain_test.cpp +++ b/effect_chain_test.cpp @@ -1024,7 +1024,9 @@ TEST(EffectChainTest, IdentityWithOwnPool) { chain.render_to_fbo(fbo, width, height); glBindFramebuffer(GL_FRAMEBUFFER, fbo); + check_error(); glReadPixels(0, 0, width, height, GL_RED, GL_FLOAT, out_data); + check_error(); expect_equal(expected_data, out_data, width, height);