From 364e62af360603a5f9ea35a5737230a62bed3d02 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 25 Nov 2017 12:31:02 +0100 Subject: [PATCH 1/1] Make it easier to turn on debug for the EffectChain test without having it be turned off again. --- effect_chain_test.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. -- 2.39.2