From 19ee34c7c28a344bcb800037b96ee14dc87ec613 Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Fri, 28 Oct 2022 11:35:43 +0800 Subject: [PATCH] fix: compile error --- source/dnode/mnode/impl/test/sdb/sdbTest.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/dnode/mnode/impl/test/sdb/sdbTest.cpp b/source/dnode/mnode/impl/test/sdb/sdbTest.cpp index 76fe030b06..37b722465a 100644 --- a/source/dnode/mnode/impl/test/sdb/sdbTest.cpp +++ b/source/dnode/mnode/impl/test/sdb/sdbTest.cpp @@ -367,6 +367,8 @@ bool sdbTraverseFail(SMnode *pMnode, SStrObj *pObj, int32_t *p1, int32_t *p2, in return false; } +#ifndef WINDOWS + TEST_F(MndTestSdb, 00_API) { SMnode mnode = {0}; SSdbOpt opt = {0}; @@ -437,7 +439,8 @@ TEST_F(MndTestSdb, 00_API) { ASSERT_NE(sdbWriteWithoutFree(pSdb, pRaw4), 0); } -#if 0 +#endif + TEST_F(MndTestSdb, 01_Write_Str) { void *pIter = NULL; int32_t num = 0; @@ -1006,5 +1009,3 @@ TEST_F(MndTestSdb, 01_Read_Str) { ASSERT_EQ(mnode.insertTimes, 9); ASSERT_EQ(mnode.deleteTimes, 9); } - -#endif \ No newline at end of file -- GitLab