mirror of
https://github.com/openharmony/drivers_framework.git
synced 2026-08-26 18:17:07 -04:00
!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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user