提交 8831e405 编写于 作者: Q qu-xianfei

检查iccarm编译器

Signed-off-by: Nqu-xianfei <quxianfei@huawei.com>
Change-Id: I31930efd41034e0925d2f742fb1b14f9e081dc5f
上级 a2490cf5
......@@ -21,5 +21,7 @@ hctest_suite("ActsAbilityMgrTest") {
"${aafwk_lite_path}/interfaces/kits/ability_lite",
"${appexecfwk_lite_path}/interfaces/kits/bundle_lite",
]
if (board_toolchain_type != "iccarm") {
cflags = [ "-Wno-error" ]
}
}
......@@ -23,6 +23,7 @@
#include "hctest.h"
#include "ohos_types.h"
#include "ability_manager.h"
#include "slite/ability_manager.h"
#include "ability_errors.h"
#include "want.h"
......
......@@ -23,5 +23,7 @@ hctest_suite("ActsBundleMgrTest") {
"${appexecfwk_lite_path}/utils/bundle_lite",
"//commonlibrary/utils_lite/memory/include",
]
if (board_toolchain_type != "iccarm") {
cflags = [ "-Wno-error" ]
}
}
......@@ -103,7 +103,7 @@ lite_component("acts_component") {
if (ohos_build_type == "debug" && ohos_test_args != "notest") {
_all_features = ""
_product_json = rebase_path("${product_path}/config.json")
_product_json = rebase_path("${product_config_path}/config.json")
foreach(one_feature, all_features) {
_all_features = _all_features + one_feature + ","
}
......
......@@ -24,5 +24,7 @@ hctest_suite("ActsUtilsFileTest") {
"src",
"//commonlibrary/utils_lite/include",
]
if (board_toolchain_type != "iccarm") {
cflags = [ "-Wno-error" ]
}
}
......@@ -50,5 +50,7 @@ hctest_suite("ActsSamgrTest") {
[ "//foundation/systemabilitymgr/samgr_lite/samgr/adapter:samgr_adapter" ]
defines = [ "UNITY_INCLUDE_CONFIG_H" ]
if (board_toolchain_type != "iccarm") {
cflags = [ "-Wno-error" ]
}
}
......@@ -220,10 +220,6 @@ LITE_TEST_CASE(Broadcast01TestSuite, testSubscribe0020, Function | MediumTest |
int result = subscriber->Subscribe((IUnknown *)fapi, NULL, &c1);
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);
}
......
......@@ -21,5 +21,7 @@ hctest_suite("ActsHieventLiteTest") {
"//base/hiviewdfx/hievent_lite/interfaces/native/innerkits",
]
if (board_toolchain_type != "iccarm") {
cflags = [ "-Wno-error" ]
}
}
......@@ -53,11 +53,12 @@ static BOOL HieventLiteTestSuiteTearDown(void)
* @param : module name is hievet_lite
* @param : test suit name is HieventLiteTest
*/
static HieventProc HieventLiteTestOutputFunc(uint8 *data)
static int HieventLiteTestOutputFunc(uint8 *data)
{
HiEvent *e = (HiEvent *)data;
TEST_ASSERT_EQUAL_INT(HIEVENT_TEST_ID, e->common.eventId);
return 0;
}
/**
......@@ -101,7 +102,7 @@ LITE_TEST_CASE(HieventLiteTestSuite, HieventLiteFuncTest003, Level1)
{
HiEvent *e = HiEventCreate(HIEVENT_FAULT, HIEVENT_TEST_ID, 3);
HiEventRegisterProc(HieventLiteTestOutputFunc);
HiEventRegisterProc((HieventProc)HieventLiteTestOutputFunc);
TEST_ASSERT_NOT_NULL(e);
......@@ -111,7 +112,7 @@ LITE_TEST_CASE(HieventLiteTestSuite, HieventLiteFuncTest003, Level1)
HiEventReport(e);
HiEventFlush(TRUE);
HiEventUnRegisterProc(HieventLiteTestOutputFunc);
HiEventUnRegisterProc((HieventProc)HieventLiteTestOutputFunc);
};
/**
......
......@@ -22,9 +22,9 @@ hctest_suite("ActsDfxFuncTest") {
"//base/hiviewdfx/hilog_lite/interfaces/native/kits/hilog_lite",
"//base/hiviewdfx/hievent_lite/interfaces/native/innerkits",
"//base/hiviewdfx/hilog_lite/frameworks/mini",
"//vendor/hisi/hi3861/hi3861/include",
"//vendor/hisi/hi3861/hi3861/components/lwip_sack/include",
]
if (board_toolchain_type != "iccarm") {
cflags = [ "-Wno-error" ]
}
}
......@@ -299,7 +299,7 @@ LITE_TEST_CASE(ParameterReliTestSuite,
testObtainSysParaReli015,
Function | MediumTest | Level1) {
int value1 = GetFirstApiVersion();
TEST_ASSERT_NOT_NULL(value1);
TEST_ASSERT_NOT_NULL(&value1);
TEST_ASSERT_TRUE((int)value1 == value1);
for (int i = 0; i < QUERY_TIMES; i++) {
int value = GetFirstApiVersion();
......@@ -453,7 +453,7 @@ LITE_TEST_CASE(ParameterReliTestSuite,
testObtainSysParaReli024,
Function | MediumTest | Level1) {
int value1 = GetSdkApiVersion();
TEST_ASSERT_NOT_NULL(value1);
TEST_ASSERT_NOT_NULL(&value1);
TEST_ASSERT_TRUE((int)value1 == value1);
for (int i = 0; i < QUERY_TIMES; i++) {
int value = GetSdkApiVersion();
......
......@@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <string.h>
#include "hctest.h"
#include "parameter_utils.h"
......
......@@ -21,5 +21,7 @@ hctest_suite("ActsUpdaterFuncTest") {
"//base/update/sys_installer_lite/interfaces/kits",
]
if (board_toolchain_type != "iccarm") {
cflags = [ "-Wno-error" ]
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册