From 8b1b0b6582717d1a8917af87f7012b5de9c94645 Mon Sep 17 00:00:00 2001 From: zhuling13 Date: Wed, 25 Jun 2014 19:57:39 -0700 Subject: [PATCH] for auto testing --- test/api/simple_test.cpp | 2 +- test/build/ios/codec_unittest/codec_unittest/main.m | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/test/api/simple_test.cpp b/test/api/simple_test.cpp index c583832e..6d144054 100644 --- a/test/api/simple_test.cpp +++ b/test/api/simple_test.cpp @@ -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; diff --git a/test/build/ios/codec_unittest/codec_unittest/main.m b/test/build/ios/codec_unittest/codec_unittest/main.m index 6b93cb61..8b1fc2bc 100644 --- a/test/build/ios/codec_unittest/codec_unittest/main.m +++ b/test/build/ios/codec_unittest/codec_unittest/main.m @@ -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])); }