summaryrefslogtreecommitdiff
path: root/libdbpp/unittests
diff options
context:
space:
mode:
Diffstat (limited to 'libdbpp/unittests')
-rw-r--r--libdbpp/unittests/testMock.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libdbpp/unittests/testMock.cpp b/libdbpp/unittests/testMock.cpp
index 9a3eba6..7b71312 100644
--- a/libdbpp/unittests/testMock.cpp
+++ b/libdbpp/unittests/testMock.cpp
@@ -22,7 +22,8 @@ BOOST_AUTO_TEST_CASE( mockFactory )
BOOST_REQUIRE(m);
auto c = m->openConnection();
BOOST_REQUIRE(c);
- BOOST_REQUIRE_EQUAL(typeid(MockDb), typeid(*c));
+ auto & cr = *c;
+ BOOST_REQUIRE_EQUAL(typeid(MockDb), typeid(cr));
}
BOOST_AUTO_TEST_CASE( missingMock )