diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-10-17 15:54:58 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-10-17 15:54:58 +0100 |
commit | 34295a510cc80a72300227e15c489cada5f37321 (patch) | |
tree | 90c18df17852c0ab76a64e5e04bebaa8a895da0e | |
parent | Test savepoints (diff) | |
download | libdbpp-34295a510cc80a72300227e15c489cada5f37321.tar.bz2 libdbpp-34295a510cc80a72300227e15c489cada5f37321.tar.xz libdbpp-34295a510cc80a72300227e15c489cada5f37321.zip |
Test resolve success
-rw-r--r-- | libdbpp/unittests/testConnection.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libdbpp/unittests/testConnection.cpp b/libdbpp/unittests/testConnection.cpp index bcfadeb..2e8a7a2 100644 --- a/libdbpp/unittests/testConnection.cpp +++ b/libdbpp/unittests/testConnection.cpp @@ -58,6 +58,9 @@ BOOST_AUTO_TEST_CASE( create ) BOOST_AUTO_TEST_CASE( resolve ) { + auto pq = DB::ConnectionFactory::createNew("postgresql", "user=postgres dbname=postgres"); + BOOST_REQUIRE(pq); + delete pq; BOOST_REQUIRE_THROW(DB::ConnectionFactory::createNew("otherdb", "doesn't matter"), AdHoc::LoadLibraryException); } |