From 23d2001e0791e3bd59a51b0ffc25dbbf3fdfb917 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E6=80=80=E6=B3=A2?= <1015388983@qq.com> Date: Tue, 21 Mar 2023 03:10:20 +0000 Subject: [PATCH] update startup_lite/syspara_hal/src/deviceinfo_func_test.c. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 于怀波 <1015388983@qq.com> --- startup_lite/syspara_hal/src/deviceinfo_func_test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/startup_lite/syspara_hal/src/deviceinfo_func_test.c b/startup_lite/syspara_hal/src/deviceinfo_func_test.c index 7622e290a..a25eb611c 100644 --- a/startup_lite/syspara_hal/src/deviceinfo_func_test.c +++ b/startup_lite/syspara_hal/src/deviceinfo_func_test.c @@ -427,15 +427,15 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite, printf("Secure Patch Level=%s\n", value); int year, month, day; - sscanf(value, "%04d-%02d-%02d", &year, &month, &day); - printf("%04d-%02d-%02d\n", year, month, day); + sscanf(value, "%04d\/%02d\/%02d", &year, &month, &day); + printf("%04d\/%02d\/%02d\n", year, month, day); TEST_ASSERT_TRUE(year > 1900 && year < 2056); TEST_ASSERT_TRUE(month <= 12 && month > 0); TEST_ASSERT_TRUE(day <= 31 && day > 0); char str[10] = {0}; - sprintf(str, "%d-%02d-%02d", year, month, day); + sprintf(str, "%d\/%02d\/%02d", year, month, day); printf("str=%s\n", str); TEST_ASSERT_EQUAL_STRING(str, value); }; -- GitLab