for auto testing

This commit is contained in:
zhuling13 2014-06-25 19:57:39 -07:00
parent e1152f9483
commit 8b1b0b6582
2 changed files with 2 additions and 1 deletions

View File

@ -10,7 +10,7 @@ int CodecUtMain (int argc , char** argv) {
int main (int argc, char** argv) {
#endif
#if defined(ANDROID_NDK)
#if (defined(ANDROID_NDK)||defined(APPLE_IOS))
char xmlPath[1024] = "";
sprintf (xmlPath, "xml:%s", argv[1]);
::testing::GTEST_FLAG (output) = xmlPath;

View File

@ -53,6 +53,7 @@ int main(int argc, char * argv[])
argv[0]="codec_unittest";
argv[1]=path;
CodecUtMain(argc,argv);
abort();
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}