diff --git a/startup_lite/syspara_hal/src/deviceinfo_func_test.c b/startup_lite/syspara_hal/src/deviceinfo_func_test.c index 8f89b6d3be9a398a9eac7e134d559b7439a834e0..ffdbfbde0c28e8c9f39b86c138f9a19fad62a0f6 100644 --- a/startup_lite/syspara_hal/src/deviceinfo_func_test.c +++ b/startup_lite/syspara_hal/src/deviceinfo_func_test.c @@ -477,7 +477,7 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite, TEST_ASSERT_TRUE(day <= 31 && day > 0); char str[10] = {0}; - ret = sprintf_s(str, sizeof(str) + 1, "%d-%02d-%02d", year, month, day); + ret = sprintf_s(str, sizeof(str) + 1, "%d\/%02d\/%02d", year, month, day); if (ret < RET_SUCCESS) { TEST_ASSERT_TRUE(ret >= 0);