mirror of
https://gitee.com/openharmony/startup_init
synced 2024-12-14 06:28:44 +00:00
init: fix codedex
Signed-off-by: xionglei6 <xionglei6@huawei.com>
This commit is contained in:
parent
15603b8f8b
commit
83727a2a70
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user