diff --git a/tests/cpp-tests/Classes/UnitTest/RefPtrTest.cpp b/tests/cpp-tests/Classes/UnitTest/RefPtrTest.cpp index f7f2053362..98842355f2 100644 --- a/tests/cpp-tests/Classes/UnitTest/RefPtrTest.cpp +++ b/tests/cpp-tests/Classes/UnitTest/RefPtrTest.cpp @@ -6,7 +6,7 @@ void RefPtrTest::onEnter() { UnitTestDemo::onEnter(); -#if DEBUG +#if (defined(COCOS2D_DEBUG) && COCOS2D_DEBUG > 0) // TEST(constructors) { // Default constructor