From 45d85476229468808793e28e756023e127b9ccf1 Mon Sep 17 00:00:00 2001 From: heliclei Date: Tue, 13 May 2014 14:16:06 +0800 Subject: [PATCH] add config item --- tests/cpp-tests/Classes/controller.cpp | 5 ++++- tests/cpp-tests/Resources/configs/config-example.plist | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/cpp-tests/Classes/controller.cpp b/tests/cpp-tests/Classes/controller.cpp index e0bb8d32be..d301c1a3e7 100644 --- a/tests/cpp-tests/Classes/controller.cpp +++ b/tests/cpp-tests/Classes/controller.cpp @@ -512,7 +512,10 @@ void TestController::autorun() strcpy(cmd, tmp.c_str()); wait(3); send(sfd,cmd,strlen(cmd),0); - wait(3600); + while(true) + { + wait(1); + } #if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) || (CC_TARGET_PLATFORM == CC_PLATFORM_WP8) closesocket(sfd); WSACleanup(); diff --git a/tests/cpp-tests/Resources/configs/config-example.plist b/tests/cpp-tests/Resources/configs/config-example.plist index b680f89421..7bcad82e8c 100755 --- a/tests/cpp-tests/Resources/configs/config-example.plist +++ b/tests/cpp-tests/Resources/configs/config-example.plist @@ -14,6 +14,8 @@ rgba8888 cocos2d.x.texture.pvrv2_has_alpha_premultiplied + cocos2d.x.testcpp.autorun + metadata