From 634928e4d043e99595b32615dcee70532fe274cd Mon Sep 17 00:00:00 2001 From: yangzhg <780531911@qq.com> Date: Sun, 19 Jan 2020 21:33:48 +0800 Subject: [PATCH] Fix typo and remove tmp file in ut (#2789) --- .gitignore | 6 +++++- be/test/olap/byte_buffer_test.cpp | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 60d1a0e913..ec362c591b 100644 --- a/.gitignore +++ b/.gitignore @@ -11,10 +11,14 @@ thirdparty/installed *.so.tmp .DS_Store *.iml +core.* extension/spark-doris-connector/.classpath extension/spark-doris-connector/target fe/log -custom-env.sh +custom_env.sh +ut_dir +log +meta #ignore eclipse project file & idea project file diff --git a/be/test/olap/byte_buffer_test.cpp b/be/test/olap/byte_buffer_test.cpp index d9180bdda7..80a9fb5674 100755 --- a/be/test/olap/byte_buffer_test.cpp +++ b/be/test/olap/byte_buffer_test.cpp @@ -18,6 +18,7 @@ #include #include +#include "boost/filesystem.hpp" #include "olap/byte_buffer.h" #include "olap/file_helper.h" #include "util/logging.h" @@ -31,6 +32,9 @@ public: virtual void SetUp() { } virtual void TearDown() { + if (boost::filesystem::exists(".test_byte_buffer")) { + ASSERT_TRUE(boost::filesystem::remove_all(".test_byte_buffer")); + } } };