From 441f0ebca8bcc6e3358bd8910454ed01b823a6ad Mon Sep 17 00:00:00 2001 From: geron-cn Date: Thu, 17 Jul 2014 16:13:12 +0800 Subject: [PATCH] fix binary test crash bug --- .../CocoStudioArmatureTest/ArmatureScene.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioArmatureTest/ArmatureScene.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioArmatureTest/ArmatureScene.cpp index b799b4cac0..a1fad7d854 100644 --- a/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioArmatureTest/ArmatureScene.cpp +++ b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioArmatureTest/ArmatureScene.cpp @@ -1546,7 +1546,7 @@ void TestLoadFromBinary::onTouchesEnded(const std::vector& touches, Even // remove json created // remove sync resource - ArmatureDataManager::getInstance()->removeArmatureFileInfo("armature/Cowboy.ExportJson"); + ArmatureDataManager::getInstance()->removeArmatureFileInfo(m_binaryFilesNames[0]); ArmatureDataManager::getInstance()->removeArmatureFileInfo("armature/Cowboy.ExportJson"); ArmatureDataManager::getInstance()->removeArmatureFileInfo("armature/hero.ExportJson"); ArmatureDataManager::getInstance()->removeArmatureFileInfo("armature/horse.ExportJson"); @@ -1557,11 +1557,6 @@ void TestLoadFromBinary::onTouchesEnded(const std::vector& touches, Even ArmatureDataManager::getInstance()->removeArmatureFileInfo(m_binaryFilesNames[i]); } - for( int i = 0; i < BINARYFILECOUNT; i++) - { - ArmatureDataManager::getInstance()->removeArmatureFileInfo("armature/testEasing.csb"); - } - for( int i = 0; i < BINARYFILECOUNT; i++) { ArmatureDataManager::getInstance()->addArmatureFileInfoAsync(m_binaryFilesNames[i], this, schedule_selector(TestLoadFromBinary::dataLoaded));