init: fix codedex

Signed-off-by: xionglei6 <xionglei6@huawei.com>
This commit is contained in:
xionglei6 2022-01-25 14:59:36 +08:00
parent 15603b8f8b
commit 83727a2a70
2 changed files with 9 additions and 9 deletions

View File

@ -29,13 +29,13 @@
#define PLUGIN_LOGE(fmt, ...) STARTUP_LOGE(PLUGIN_LOG_FILE, PLUGIN_LABEL, fmt, ##__VA_ARGS__)
#define PLUGIN_LOGV(fmt, ...) STARTUP_LOGV(PLUGIN_LOG_FILE, PLUGIN_LABEL, fmt, ##__VA_ARGS__)
#define PLUGIN_CHECK(ret, exper, ...) \
if (!(ret)) { \
PLUGIN_LOGE(__VA_ARGS__); \
exper; \
#define PLUGIN_CHECK(ret, exper, ...) \
if (!(ret)) { \
PLUGIN_LOGE(__VA_ARGS__); \
exper; \
}
#define PLUGIN_ONLY_CHECK(ret, exper, ...) \
if (!(ret)) { \
exper; \
#define PLUGIN_ONLY_CHECK(ret, exper, ...) \
if (!(ret)) { \
exper; \
}
#endif
#endif

View File

@ -41,7 +41,7 @@ HWTEST_F(UtilsUnitTest, TestMakeDir, TestSize.Level0)
dir = nullptr;
ret = MakeDirRecursive(dir, mode);
EXPECT_EQ(ret, -1);
ret = MakeDir(dir, 9999999);
ret = MakeDir(dir, 9999);
EXPECT_EQ(ret, -1);
}