!239 hdf osal模块reviewbot告警处理

Merge pull request !239 from Zhang/master
This commit is contained in:
openharmony_ci
2021-09-10 03:27:27 +00:00
committed by Gitee
4 changed files with 10 additions and 10 deletions
@@ -13,14 +13,12 @@
#include <string>
#include <unistd.h>
#include <gtest/gtest.h>
#include "osal_test_case_def.h"
#include "hdf_uhdf_test.h"
#include "hdf_io_service_if.h"
#include "hdf_uhdf_test.h"
#include "osal_test_case_def.h"
using namespace testing::ext;
static const int OSAL_TEST_TIME = 30;
static const int OSAL_WAIT_END_TIME = 5;
static const char *OSAL_FW_PATH = "/lib/firmware";
static const int OSAL_FW_PATH_MODE = 0x777;
#define OSAL_TEST_FUNC_DEFINE(subCmd) do { \
@@ -35,6 +33,9 @@ public:
static void TearDownTestCase();
void SetUp();
void TearDown();
private:
static const int OSAL_TEST_TIME = 30;
static const int OSAL_WAIT_END_TIME = 5;
};
static void OsalCreateDir(bool flag)
@@ -13,9 +13,9 @@
#include <string>
#include <unistd.h>
#include <gtest/gtest.h>
#include "osal_test_case_def.h"
#include "hdf_uhdf_test.h"
#include "osal_get_case_test.h"
#include "osal_test_case_def.h"
int32_t HdfOsalUserEntry(enum HdfOsalTestCaseCmd cmd)
{
@@ -41,9 +41,6 @@ int32_t HdfOsalUserEntry(enum HdfOsalTestCaseCmd cmd)
using namespace testing::ext;
static const int OSAL_TEST_TIME = 30;
static const int OSAL_WAIT_END_TIME = 5;
#define OSAL_TEST_FUNC_DEFINE(subCmd) do { \
printf("OSAL test enter cmd:%d\n\r", subCmd); \
EXPECT_EQ(0, HdfOsalUserEntry(subCmd)); \
@@ -55,6 +52,9 @@ public:
static void TearDownTestCase();
void SetUp();
void TearDown();
private:
static const int OSAL_TEST_TIME = 30;
static const int OSAL_WAIT_END_TIME = 5;
};
void OsalTest::SetUpTestCase()
+1 -1
View File
@@ -806,7 +806,7 @@ int OsaTestBegin(void)
#ifndef __USER__
ret = OsalTestFileInit();
#else
ret = 0;
ret = 0;
#endif
OsalTestOther(ret);
OsaTimeTest();
-1
View File
@@ -6,7 +6,6 @@
* See the LICENSE file in the root of this repository for complete details.
*/
#include "hdf_log.h"
#include "osal_case_cmd_test.h"
int OsalGetTestResult(uint32_t cmd)