Diagnostics fix and Linux test fixes

This commit is contained in:
Aleksandar Fabijanic
2007-05-23 23:07:52 +00:00
parent 55b22cc271
commit cb7394bb6d
6 changed files with 43 additions and 22 deletions

View File

@@ -847,7 +847,8 @@ bool ODBCSQLServerTest::canConnect(const std::string& driver, const std::string&
"UID=test;"
"PWD=test;"
"DATABASE=test;"
"SERVER=(local);", driver);
"SERVER=localhost;"
"PORT=1433;", driver);
return true;
}
@@ -891,7 +892,11 @@ bool ODBCSQLServerTest::init(const std::string& driver, const std::string& dsn)
CppUnit::Test* ODBCSQLServerTest::suite()
{
#ifdef POCO_OS_FAMILY_WINDOWS
if (init("SQL Server", "PocoDataSQLServerTest"))
#else
if (init("FreeTDS", "PocoDataSQLServerTest"))
#endif
{
CppUnit::TestSuite* pSuite = new CppUnit::TestSuite("ODBCSQLServerTest");