D | bundle_mgr_test.c | 56 AbilityInfo abilityInfo; variable 57 int result = memset_s(&abilityInfo, sizeof(abilityInfo), 0, sizeof(abilityInfo)); 61 abilityInfo.bundleName = (char *)(AdapterMalloc(len + 1)); 62 TEST_ASSERT_NOT_NULL(abilityInfo.bundleName); 63 errno_t err = strncpy_s(abilityInfo.bundleName, len + 1, name, len); 65 TEST_ASSERT_EQUAL_STRING(abilityInfo.bundleName, name); 66 ClearAbilityInfo(&abilityInfo); 67 TEST_ASSERT_EQUAL_STRING(abilityInfo.bundleName, NULL); 79 AbilityInfo abilityInfo = { 0 }; variable 80 int result = memset_s(&abilityInfo, sizeof(abilityInfo), 0, sizeof(abilityInfo)); [all …]
|