!1007 fix: Add struct initialization to fix platform device test case failure, increase delay to fix the occasional failure of the platform queue test case.

Merge pull request !1007 from 贾子扬/master
This commit is contained in:
openharmony_ci
2022-05-27 06:42:14 +00:00
committed by Gitee
2 changed files with 2 additions and 2 deletions
@@ -281,7 +281,7 @@ int PlatformDeviceTestExecute(int cmd)
{
uint32_t i;
int32_t ret = HDF_ERR_NOT_SUPPORT;
struct PlatformDevice device;
struct PlatformDevice device = {0};
struct PlatformDeviceTestEntry *entry = NULL;
if (cmd > PLAT_DEVICE_TEST_CMD_MAX) {
@@ -12,7 +12,7 @@
#define HDF_LOG_TAG platform_queue_test
#define PLAT_QUEUE_TEST_TIMEOUT 20
#define PLAT_QUEUE_TEST_TIMEOUT 1000
#define TEST_CODE_A 0x5A