[fix](vectorized) fix core dump on get_json_string and add some ut (#8496)

This commit is contained in:
Pxl
2022-03-17 10:08:31 +08:00
committed by GitHub
parent 848acec584
commit a8af8d2981
22 changed files with 145 additions and 55 deletions

View File

@ -96,15 +96,18 @@ public:
hostname = "http://127.0.0.1:" + std::to_string(real_port);
// compile code to so
system("g++ -shared -fPIC ./be/test/runtime/test_data/user_function_cache/lib/my_add.cc -o "
"./be/test/runtime/test_data/user_function_cache/lib/my_add.so");
ASSERT_EQ(system("g++ -shared -fPIC "
"./be/test/runtime/test_data/user_function_cache/lib/my_add.cc -o "
"./be/test/runtime/test_data/user_function_cache/lib/my_add.so"),
0);
my_add_md5sum =
compute_md5("./be/test/runtime/test_data/user_function_cache/lib/my_add.so");
}
static void TearDownTestCase() {
delete s_server;
system("rm -rf ./be/test/runtime/test_data/user_function_cache/lib/my_add.so");
ASSERT_EQ(system("rm -rf ./be/test/runtime/test_data/user_function_cache/lib/my_add.so"),
0);
}
void SetUp() override { k_is_downloaded = false; }
};