diff --git a/source/libs/executor/test/tSimpleHashTests.cpp b/source/libs/executor/test/tSimpleHashTests.cpp index e9284d2477e51f9f3eda23dd658f1e1c1cefe59f..a17a7146eabd55914b0143de55ddf0a732cac162 100644 --- a/source/libs/executor/test/tSimpleHashTests.cpp +++ b/source/libs/executor/test/tSimpleHashTests.cpp @@ -25,10 +25,10 @@ #pragma GCC diagnostic ignored "-Wunused-variable" #pragma GCC diagnostic ignored "-Wsign-compare" -int main(int argc, char **argv) { - testing::InitGoogleTest(&argc, argv); - return RUN_ALL_TESTS(); -} +// int main(int argc, char **argv) { +// testing::InitGoogleTest(&argc, argv); +// return RUN_ALL_TESTS(); +// } TEST(testCase, tSimpleHashTest) { SSHashObj *pHashObj = @@ -68,6 +68,8 @@ TEST(testCase, tSimpleHashTest) { tSimpleHashRemove(pHashObj, (const void *)&i); ASSERT_EQ(100 - i, tSimpleHashGetSize(pHashObj)); } + + tSimpleHashCleanup(pHashObj); } #pragma GCC diagnostic pop \ No newline at end of file