提交 327dd4fc 编写于 作者: N nan-xiansen

【startup_lite】【master】add SecurityPatchTag interface time format verification case

Signed-off-by: Nnan-xiansen <nanjinbin@huawei.com>
Change-Id: Ibb844c33dcea25d7d012c18aa58c99812b56209c
上级 ab85aac5
......@@ -209,6 +209,23 @@ LITE_TEST_CASE(ParameterFuncTestSuite, testObtainSysPara013, Function | MediumTe
AssertNotEmpty(value);
};
/**
* @tc.number : SUB_UTILS_PARAMETER_8200
* @tc.name : Obtaining system parameter SecurityPatchTag which format is yy--mm--dd
* @tc.desc : [C- SOFTWARE -0200]
*/
LITE_TEST_CASE(ParameterFuncTestSuite, testGetSecurityPatchTag02, Function | MediumTest | Level1)
{
const char *value = GetSecurityPatchTag();
printf("Secure Patch Level=%s\n", value);
int year, month, day;
sscanf(value, "%04d-%02d-%02d", &year, &month, &day);
printf("%d-%02d-%02d\n", year, month, day);
char *str = ("%d-%02d-%02d\n", year, month, day);
TEST_ONLY();
};
/**
* @tc.number : SUB_UTILS_PARAMETER_1400
* @tc.name : Obtaining system parameter AbiList
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册