push 3.3.19 to github (#193)

* push 3.3.19 to github

* merge to 20ed420122a8283200aa37b0a6179b6a571d2837
This commit is contained in:
morningman
2018-05-15 20:38:22 +08:00
committed by Zhao Chun
parent e684ae9b49
commit 2419384e8a
467 changed files with 40454 additions and 17248 deletions

View File

@ -13,12 +13,13 @@
// specific language governing permissions and limitations
// under the License.
#include "runtime/string_buffer.hpp"
#include <string>
#include <gtest/gtest.h>
#include "runtime/mem_pool.h"
#include "runtime/string_buffer.hpp"
#include "runtime/mem_tracker.h"
namespace palo {
@ -32,7 +33,8 @@ void validate_string(const std::string& std_str, const StringBuffer& str) {
}
TEST(StringBufferTest, Basic) {
MemPool pool;
MemTracker tracker;
MemPool pool(&tracker);
StringBuffer str(&pool);
std::string std_str;
@ -71,12 +73,14 @@ TEST(StringBufferTest, Basic) {
}
int main(int argc, char** argv) {
#if 0
std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf";
if (!palo::config::init(conffile.c_str(), false)) {
fprintf(stderr, "error read config file. \n");
return -1;
}
init_glog("be-test");
#endif
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}