From 34295a510cc80a72300227e15c489cada5f37321 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 17 Oct 2015 15:54:58 +0100 Subject: Test resolve success --- libdbpp/unittests/testConnection.cpp | 3 +++ 1 file changed, 3 insertions(+) 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); } -- cgit v1.2.3