tsdbTests.cpp 313 字节
Newer Older
H
more  
hzcheng 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include <gtest/gtest.h>
#include <stdlib.h>

#include "tsdb.h"

TEST(TsdbTest, createTsdbRepo) {
    STSDBCfg *pCfg = (STSDBCfg *)malloc(sizeof(STSDBCfg));

    pCfg->rootDir = "/var/lib/taos/";

    int32_t err_num = 0;
    
    tsdb_repo_t *pRepo = tsdbCreateRepo(pCfg, &err_num);
    ASSERT_EQ(pRepo, NULL);
}