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:
parent
063898c5e3
commit
c68c9b59fe
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user