skip some test on android (#17648)

This commit is contained in:
minggo 2017-04-05 17:40:47 +08:00 committed by GitHub
parent 9c77f09c49
commit 2ee3274029
1 changed files with 4 additions and 0 deletions

View File

@ -137,6 +137,9 @@ void TestSearchPath::onEnter()
} }
} }
// FIXME: should fix the issue on Android
#if (CC_TARGET_PLATFORM != CC_PLATFORM_ANDROID)
// Save old resource root path // Save old resource root path
std::string oldDefaultRootPath = sharedFileUtils->getDefaultResourceRootPath(); std::string oldDefaultRootPath = sharedFileUtils->getDefaultResourceRootPath();
sharedFileUtils->setDefaultResourceRootPath(oldDefaultRootPath + "extensions"); sharedFileUtils->setDefaultResourceRootPath(oldDefaultRootPath + "extensions");
@ -155,6 +158,7 @@ void TestSearchPath::onEnter()
// Recover old search paths // Recover old search paths
sharedFileUtils->setSearchPaths(oldSearchPaths); sharedFileUtils->setSearchPaths(oldSearchPaths);
#endif
} }
void TestSearchPath::onExit() void TestSearchPath::onExit()