]> git.sesse.net Git - movit/blobdiff - effect_chain_test.cpp
In EffectChainTest, do not re-call init_movit()
[movit] / effect_chain_test.cpp
index fed8b91b693f42ef6796307d3039d3d29d668663..25cd50a26839ba5942998d13b872f42ea13225ef 100644 (file)
@@ -9,6 +9,7 @@
 #include "effect_chain.h"
 #include "flat_input.h"
 #include "gtest/gtest.h"
+#include "init.h"
 #include "input.h"
 #include "mirror_effect.h"
 #include "multiply_effect.h"
@@ -957,8 +958,6 @@ TEST(EffectChainTest, VirtualSizeIsSentOnToInputs) {
        expect_equal(data, out_data, size, size);
 }
 
-extern bool movit_initialized;
-
 // Does not use EffectChainTest, so that it can construct an EffectChain without
 // a shared ResourcePool (which is also properly destroyed afterwards).
 // Also turns on debugging to test that code path.
@@ -975,8 +974,7 @@ TEST(EffectChainTest, IdentityWithOwnPool) {
        float out_data[6];
 
        EffectChain chain(width, height);
-       movit_initialized = false;
-       init_movit(".", MOVIT_DEBUG_ON);
+       movit_debug_level = MOVIT_DEBUG_ON;
 
        ImageFormat format;
        format.color_space = COLORSPACE_sRGB;
@@ -1019,6 +1017,5 @@ TEST(EffectChainTest, IdentityWithOwnPool) {
        expect_equal(expected_data, out_data, width, height);
 
        // Reset the debug status again.
-       movit_initialized = false;
-       init_movit(".", MOVIT_DEBUG_OFF);
+       movit_debug_level = MOVIT_DEBUG_OFF;
 }