!133 修复 tdd 测试失败问题。

Merge pull request !133 from chenyude/codex
This commit is contained in:
openharmony_ci
2022-08-16 13:11:23 +00:00
committed by Gitee
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -161,7 +161,7 @@ bool EncodePrivateSyscap(char **output, int *outputLen)
return false;
}
int priLen = bufferLen - PCID_MAIN_BYTES - 1;
uint32_t priLen = bufferLen - PCID_MAIN_BYTES - 1;
if (priLen <= 0) {
*outputLen = 0;
return false;
+1 -1
View File
@@ -137,7 +137,7 @@ HWTEST_F(SyscapCodecTest, ComparePcidString, TestSize.Level1)
const char rpcidString[] = "33588992,1766370052,65536,276824064,0,0,0,0,0,0,"\
"0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"\
"SystemCapability.vendor.xxxxx1,SystemCapability.device.xxxxx2";
const char expect[][256] = {"SystemCapability.Graphic.UI",
const char expect[][256] = {"SystemCapability.Graphic.Graphic2D.Vulkan",
"SystemCapability.HiviewDFX.HiDumper",
"SystemCapability.vendor.xxxxx1",
"SystemCapability.device.xxxxx2"};