summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libdbpp/unittests/testConnection.cpp3
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);
}