1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

feature #192: Updated pool tests

This commit is contained in:
Ruben S. Montero 2010-04-25 17:52:35 +02:00
parent 063898c5e3
commit c68c9b59fe
3 changed files with 8 additions and 2 deletions

View File

@ -88,6 +88,8 @@ public:
return static_cast<TestObjectSQL *>(PoolSQL::get(oid,lock));;
}
int dump(std::ostringstream&, const std::string&){return -1;};
private:
TestObjectSQL * create()
@ -97,4 +99,4 @@ private:
};
#endif
#endif

View File

@ -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;
}

View File

@ -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);
}