提交 e7c9b83a 编写于 作者: H Hongze Cheng

more

上级 244b346f
......@@ -74,7 +74,7 @@ static SVnode *vnodeNew(const char *path, const SVnodeOptions *pVnodeOptions) {
pVnode->path = strdup(path);
vnodeOptionsCopy(&(pVnode->options), pVnodeOptions);
return NULL;
return pVnode;
}
static void vnodeFree(SVnode *pVnode) {
......
#include <gtest/gtest.h>
#include <iostream>
TEST(vnodeApiTest, vnodeOpen_test) {
// TODO
std::cout << "This is in vnodeApiTest" << std::endl;
#include "vnode.h"
TEST(vnodeApiTest, vnodeOpen_vnodeClose_test) {
// Create and open a vnode
SVnode *pVnode = vnodeOpen("vnode1", NULL);
ASSERT_NE(pVnode, nullptr);
// Close the vnode
vnodeClose(pVnode);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册