From: Steinar H. Gunderson Date: Sat, 25 Nov 2017 11:31:02 +0000 (+0100) Subject: Make it easier to turn on debug for the EffectChain test without having it be turned... X-Git-Tag: 1.6.0~27 X-Git-Url: https://git.sesse.net/?p=movit;a=commitdiff_plain;h=364e62af360603a5f9ea35a5737230a62bed3d02 Make it easier to turn on debug for the EffectChain test without having it be turned off again. --- diff --git a/effect_chain_test.cpp b/effect_chain_test.cpp index f37738d..73f13c7 100644 --- a/effect_chain_test.cpp +++ b/effect_chain_test.cpp @@ -1228,6 +1228,7 @@ TEST(EffectChainTest, IdentityWithOwnPool) { float out_data[6], temp[6 * 4]; EffectChain chain(width, height); + MovitDebugLevel old_movit_debug_level = movit_debug_level; movit_debug_level = MOVIT_DEBUG_ON; ImageFormat format; @@ -1276,7 +1277,7 @@ TEST(EffectChainTest, IdentityWithOwnPool) { expect_equal(expected_data, out_data, width, height); // Reset the debug status again. - movit_debug_level = MOVIT_DEBUG_OFF; + movit_debug_level = old_movit_debug_level; } // A dummy effect whose only purpose is to test sprintf decimal behavior.