未验证 提交 7c05b5e3 编写于 作者: J jiyong 提交者: Gitee

回退 'Pull Request !5846 : 检查iccarm编译器'

上级 4631d2bd
...@@ -6,7 +6,9 @@ ...@@ -6,7 +6,9 @@
"description": "$string:entry_test_desc", "description": "$string:entry_test_desc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"default" "default",
"phone",
"tablet"
], ],
"deliveryWithInstall": true, "deliveryWithInstall": true,
"installationFree": false, "installationFree": false,
......
...@@ -6,7 +6,9 @@ ...@@ -6,7 +6,9 @@
"description": "$string:entry_test_desc", "description": "$string:entry_test_desc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"default" "default",
"phone",
"tablet"
], ],
"deliveryWithInstall": true, "deliveryWithInstall": true,
"installationFree": false, "installationFree": false,
......
...@@ -6,7 +6,9 @@ ...@@ -6,7 +6,9 @@
"description": "$string:entry_test_desc", "description": "$string:entry_test_desc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"default" "default",
"phone",
"tablet"
], ],
"deliveryWithInstall": true, "deliveryWithInstall": true,
"installationFree": false, "installationFree": false,
......
...@@ -6,7 +6,9 @@ ...@@ -6,7 +6,9 @@
"description": "$string:entry_test_desc", "description": "$string:entry_test_desc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"default" "default",
"phone",
"tablet"
], ],
"deliveryWithInstall": true, "deliveryWithInstall": true,
"installationFree": false, "installationFree": false,
......
...@@ -6,7 +6,9 @@ ...@@ -6,7 +6,9 @@
"description": "$string:entry_test_desc", "description": "$string:entry_test_desc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"default" "default",
"phone",
"tablet"
], ],
"deliveryWithInstall": true, "deliveryWithInstall": true,
"installationFree": false, "installationFree": false,
......
...@@ -6,7 +6,9 @@ ...@@ -6,7 +6,9 @@
"description": "$string:entry_test_desc", "description": "$string:entry_test_desc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"default" "default",
"phone",
"tablet"
], ],
"deliveryWithInstall": true, "deliveryWithInstall": true,
"installationFree": false, "installationFree": false,
......
...@@ -6,7 +6,9 @@ ...@@ -6,7 +6,9 @@
"description": "$string:entry_test_desc", "description": "$string:entry_test_desc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"default" "default",
"phone",
"tablet"
], ],
"deliveryWithInstall": true, "deliveryWithInstall": true,
"installationFree": false, "installationFree": false,
......
...@@ -21,8 +21,5 @@ hctest_suite("ActsAbilityMgrTest") { ...@@ -21,8 +21,5 @@ hctest_suite("ActsAbilityMgrTest") {
"${aafwk_lite_path}/interfaces/kits/ability_lite", "${aafwk_lite_path}/interfaces/kits/ability_lite",
"${appexecfwk_lite_path}/interfaces/kits/bundle_lite", "${appexecfwk_lite_path}/interfaces/kits/bundle_lite",
] ]
cflags = [ "-Wno-error" ]
if (board_toolchain_type != "iccarm") {
cflags = [ "-Wno-error" ]
}
} }
...@@ -21,8 +21,5 @@ hctest_suite("ActsBundleMgrTest") { ...@@ -21,8 +21,5 @@ hctest_suite("ActsBundleMgrTest") {
"${appexecfwk_lite_path}/interfaces/kits/bundle_lite/slite", "${appexecfwk_lite_path}/interfaces/kits/bundle_lite/slite",
"${appexecfwk_lite_path}/interfaces/kits/bundle_lite", "${appexecfwk_lite_path}/interfaces/kits/bundle_lite",
] ]
cflags = [ "-Wno-error" ]
if (board_toolchain_type != "iccarm") {
cflags = [ "-Wno-error" ]
}
} }
...@@ -103,7 +103,7 @@ lite_component("acts_component") { ...@@ -103,7 +103,7 @@ lite_component("acts_component") {
if (ohos_build_type == "debug" && ohos_test_args != "notest") { if (ohos_build_type == "debug" && ohos_test_args != "notest") {
_all_features = "" _all_features = ""
_product_json = rebase_path("${product_config_path}/config.json") _product_json = rebase_path("${product_path}/config.json")
foreach(one_feature, all_features) { foreach(one_feature, all_features) {
_all_features = _all_features + one_feature + "," _all_features = _all_features + one_feature + ","
} }
......
...@@ -24,8 +24,5 @@ hctest_suite("ActsUtilsFileTest") { ...@@ -24,8 +24,5 @@ hctest_suite("ActsUtilsFileTest") {
"src", "src",
"//commonlibrary/utils_lite/include", "//commonlibrary/utils_lite/include",
] ]
cflags = [ "-Wno-error" ]
if (board_toolchain_type != "iccarm") {
cflags = [ "-Wno-error" ]
}
} }
...@@ -30,8 +30,5 @@ hctest_suite("ActsDsoftbusMgrTest") { ...@@ -30,8 +30,5 @@ hctest_suite("ActsDsoftbusMgrTest") {
"//foundation/communication/dsoftbus/adapter/common/include", "//foundation/communication/dsoftbus/adapter/common/include",
"//foundation/communication/dsoftbus/adapter/default_config/spec_config", "//foundation/communication/dsoftbus/adapter/default_config/spec_config",
] ]
cflags = [ "-Wno-error" ]
if (board_toolchain_type != "iccarm") {
cflags = [ "-Wno-error" ]
}
} }
...@@ -50,7 +50,5 @@ hctest_suite("ActsSamgrTest") { ...@@ -50,7 +50,5 @@ hctest_suite("ActsSamgrTest") {
[ "//foundation/systemabilitymgr/samgr_lite/samgr/adapter:samgr_adapter" ] [ "//foundation/systemabilitymgr/samgr_lite/samgr/adapter:samgr_adapter" ]
defines = [ "UNITY_INCLUDE_CONFIG_H" ] defines = [ "UNITY_INCLUDE_CONFIG_H" ]
if (board_toolchain_type != "iccarm") { cflags = [ "-Wno-error" ]
cflags = [ "-Wno-error" ]
}
} }
...@@ -219,6 +219,10 @@ LITE_TEST_CASE(Broadcast01TestSuite, testSubscribe0020, Function | MediumTest | ...@@ -219,6 +219,10 @@ LITE_TEST_CASE(Broadcast01TestSuite, testSubscribe0020, Function | MediumTest |
subscriber->AddTopic((IUnknown *)fapi, &topic0); subscriber->AddTopic((IUnknown *)fapi, &topic0);
int result = subscriber->Subscribe((IUnknown *)fapi, NULL, &c1); int result = subscriber->Subscribe((IUnknown *)fapi, NULL, &c1);
TEST_ASSERT_EQUAL_INT(result != 0, TRUE); TEST_ASSERT_EQUAL_INT(result != 0, TRUE);
Topic noExistTopic = -200;
result = subscriber->Subscribe((IUnknown *)fapi, &noExistTopic, &c1);
TEST_ASSERT_EQUAL_INT(result != 0, TRUE);
CASE_ReleaseIUnknown(fapi); CASE_ReleaseIUnknown(fapi);
} }
......
...@@ -21,7 +21,5 @@ hctest_suite("ActsHieventLiteTest") { ...@@ -21,7 +21,5 @@ hctest_suite("ActsHieventLiteTest") {
"//base/hiviewdfx/hievent_lite/interfaces/native/innerkits", "//base/hiviewdfx/hievent_lite/interfaces/native/innerkits",
] ]
if (board_toolchain_type != "iccarm") { cflags = [ "-Wno-error" ]
cflags = [ "-Wno-error" ]
}
} }
...@@ -53,12 +53,11 @@ static BOOL HieventLiteTestSuiteTearDown(void) ...@@ -53,12 +53,11 @@ static BOOL HieventLiteTestSuiteTearDown(void)
* @param : module name is hievet_lite * @param : module name is hievet_lite
* @param : test suit name is HieventLiteTest * @param : test suit name is HieventLiteTest
*/ */
static int HieventProc HieventLiteTestOutputFunc(uint8 *data) static HieventProc HieventLiteTestOutputFunc(uint8 *data)
{ {
HiEvent *e = (HiEvent *)data; HiEvent *e = (HiEvent *)data;
TEST_ASSERT_EQUAL_INT(HIEVENT_TEST_ID, e->common.eventId); TEST_ASSERT_EQUAL_INT(HIEVENT_TEST_ID, e->common.eventId);
return 0;
} }
/** /**
...@@ -102,7 +101,7 @@ LITE_TEST_CASE(HieventLiteTestSuite, HieventLiteFuncTest003, Level1) ...@@ -102,7 +101,7 @@ LITE_TEST_CASE(HieventLiteTestSuite, HieventLiteFuncTest003, Level1)
{ {
HiEvent *e = HiEventCreate(HIEVENT_FAULT, HIEVENT_TEST_ID, 3); HiEvent *e = HiEventCreate(HIEVENT_FAULT, HIEVENT_TEST_ID, 3);
HiEventRegisterProc((HieventProc)HieventLiteTestOutputFunc); HiEventRegisterProc(HieventLiteTestOutputFunc);
TEST_ASSERT_NOT_NULL(e); TEST_ASSERT_NOT_NULL(e);
...@@ -112,7 +111,7 @@ LITE_TEST_CASE(HieventLiteTestSuite, HieventLiteFuncTest003, Level1) ...@@ -112,7 +111,7 @@ LITE_TEST_CASE(HieventLiteTestSuite, HieventLiteFuncTest003, Level1)
HiEventReport(e); HiEventReport(e);
HiEventFlush(TRUE); HiEventFlush(TRUE);
HiEventUnRegisterProc((HieventProc)HieventLiteTestOutputFunc); HiEventUnRegisterProc(HieventLiteTestOutputFunc);
}; };
/** /**
......
...@@ -26,7 +26,5 @@ hctest_suite("ActsDfxFuncTest") { ...@@ -26,7 +26,5 @@ hctest_suite("ActsDfxFuncTest") {
"//vendor/hisi/hi3861/hi3861/components/lwip_sack/include", "//vendor/hisi/hi3861/hi3861/components/lwip_sack/include",
] ]
if (board_toolchain_type != "iccarm") { cflags = [ "-Wno-error" ]
cflags = [ "-Wno-error" ]
}
} }
...@@ -26,8 +26,5 @@ hctest_suite("ActsParameterTest") { ...@@ -26,8 +26,5 @@ hctest_suite("ActsParameterTest") {
"src", "src",
"///base/startup/init/interfaces/innerkits/include/syspara", "///base/startup/init/interfaces/innerkits/include/syspara",
] ]
cflags = [ "-Wno-error" ]
if (board_toolchain_type != "iccarm") {
cflags = [ "-Wno-error" ]
}
} }
...@@ -299,7 +299,7 @@ LITE_TEST_CASE(ParameterReliTestSuite, ...@@ -299,7 +299,7 @@ LITE_TEST_CASE(ParameterReliTestSuite,
testObtainSysParaReli015, testObtainSysParaReli015,
Function | MediumTest | Level1) { Function | MediumTest | Level1) {
int value1 = GetFirstApiVersion(); int value1 = GetFirstApiVersion();
TEST_ASSERT_NOT_NULL(&value1); TEST_ASSERT_NOT_NULL(value1);
TEST_ASSERT_TRUE((int)value1 == value1); TEST_ASSERT_TRUE((int)value1 == value1);
for (int i = 0; i < QUERY_TIMES; i++) { for (int i = 0; i < QUERY_TIMES; i++) {
int value = GetFirstApiVersion(); int value = GetFirstApiVersion();
...@@ -453,7 +453,7 @@ LITE_TEST_CASE(ParameterReliTestSuite, ...@@ -453,7 +453,7 @@ LITE_TEST_CASE(ParameterReliTestSuite,
testObtainSysParaReli024, testObtainSysParaReli024,
Function | MediumTest | Level1) { Function | MediumTest | Level1) {
int value1 = GetSdkApiVersion(); int value1 = GetSdkApiVersion();
TEST_ASSERT_NOT_NULL(&value1); TEST_ASSERT_NOT_NULL(value1);
TEST_ASSERT_TRUE((int)value1 == value1); TEST_ASSERT_TRUE((int)value1 == value1);
for (int i = 0; i < QUERY_TIMES; i++) { for (int i = 0; i < QUERY_TIMES; i++) {
int value = GetSdkApiVersion(); int value = GetSdkApiVersion();
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
#include <string.h>
#include "hctest.h" #include "hctest.h"
#include "parameter_utils.h" #include "parameter_utils.h"
......
...@@ -21,7 +21,5 @@ hctest_suite("ActsUpdaterFuncTest") { ...@@ -21,7 +21,5 @@ hctest_suite("ActsUpdaterFuncTest") {
"//base/update/ota_lite/interfaces/kits", "//base/update/ota_lite/interfaces/kits",
] ]
if (board_toolchain_type != "iccarm") { cflags = [ "-Wno-error" ]
cflags = [ "-Wno-error" ]
}
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册