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

more

上级 244b346f
...@@ -74,7 +74,7 @@ static SVnode *vnodeNew(const char *path, const SVnodeOptions *pVnodeOptions) { ...@@ -74,7 +74,7 @@ static SVnode *vnodeNew(const char *path, const SVnodeOptions *pVnodeOptions) {
pVnode->path = strdup(path); pVnode->path = strdup(path);
vnodeOptionsCopy(&(pVnode->options), pVnodeOptions); vnodeOptionsCopy(&(pVnode->options), pVnodeOptions);
return NULL; return pVnode;
} }
static void vnodeFree(SVnode *pVnode) { static void vnodeFree(SVnode *pVnode) {
......
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <iostream> #include <iostream>
TEST(vnodeApiTest, vnodeOpen_test) { #include "vnode.h"
// TODO
std::cout << "This is in vnodeApiTest" << std::endl; 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.
先完成此消息的编辑!
想要评论请 注册