提交 4c589fdd 编写于 作者: 胡永延 提交者: Gitee

update utils_lite/kv_store_posix/src/KvStoreTest.cpp.

上级 dc72539a
......@@ -36,18 +36,18 @@ protected:
static void SetUpTestCase(void)
{
printf("----------test case with KvStoreTest start-------------\n");
int ret = mkdir("/storage/com.huawei.kv", S_IRUSR | S_IWUSR);
printf("/storage/com.huawei.kv ret = %d\n", ret);
ret = UtilsSetEnv("/storage/com.huawei.kv");
int ret = mkdir("/storage/com.openharmony.kv", S_IRUSR | S_IWUSR);
printf("/storage/com.openharmony.kv ret = %d\n", ret);
ret = UtilsSetEnv("/storage/com.openharmony.kv");
EXPECT_EQ(ret, 0);
}
// TearDownTestCase:测试套清理动作,在最后一个TestCase之后执行
static void TearDownTestCase(void)
{
int ret = rmdir("/storage/com.huawei.kv/kvstore");
printf("/storage/com.huawei.kv/kvstore ret = %d\n", ret);
ret = rmdir("/storage/com.huawei.kv");
printf("/storage/com.huawei.kv ret = %d\n", ret);
int ret = rmdir("/storage/com.openharmony.kv/kvstore");
printf("/storage/com.openharmony.kv/kvstore ret = %d\n", ret);
ret = rmdir("/storage/com.openharmony.kv");
printf("/storage/com.openharmony.kv ret = %d\n", ret);
printf("----------test case with KvStoreTest end-------------\n");
}
// 用例的预置动作
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册