diff --git a/src/pool/test/TestPoolSQL.h b/src/pool/test/TestPoolSQL.h index 8e8c2f1732..77228ea580 100644 --- a/src/pool/test/TestPoolSQL.h +++ b/src/pool/test/TestPoolSQL.h @@ -88,6 +88,8 @@ public: return static_cast(PoolSQL::get(oid,lock));; } + int dump(std::ostringstream&, const std::string&){return -1;}; + private: TestObjectSQL * create() @@ -97,4 +99,4 @@ private: }; -#endif \ No newline at end of file +#endif diff --git a/src/pool/test/pool.cc b/src/pool/test/pool.cc index 8bffae3e14..ac6282dffe 100644 --- a/src/pool/test/pool.cc +++ b/src/pool/test/pool.cc @@ -214,7 +214,11 @@ public: int main(int argc, char ** argv) { CppUnit::TextUi::TestRunner runner; + + NebulaLog::init_log_system(NebulaLog::FILE, Log::ERROR, "test.log"); runner.addTest( PoolTest::suite() ); runner.run(); + NebulaLog::finalize_log_system(); + return 0; } diff --git a/src/template/test/template_sql.cc b/src/template/test/template_sql.cc index 8dca8ddc1b..36689745e4 100644 --- a/src/template/test/template_sql.cc +++ b/src/template/test/template_sql.cc @@ -118,7 +118,7 @@ public: ostringstream db_bs("CREATE TABLE template (id INTEGER, name TEXT," " type INTEGER, value TEXT)"); - db = new SqliteDB(filename , TemplateSQLTest::log); + db = new SqliteDB(filename); CPPUNIT_ASSERT(db->exec(db_bs)== 0); }