diff options
Diffstat (limited to 'libdbpp/unittests')
m--------- | libdbpp/unittests/libdbpp-odbc | 0 | ||||
m--------- | libdbpp/unittests/libdbpp-postgresql | 0 | ||||
m--------- | libdbpp/unittests/libdbpp-sqlite | 0 | ||||
-rw-r--r-- | libdbpp/unittests/testUtils.cpp | 2 |
4 files changed, 2 insertions, 0 deletions
diff --git a/libdbpp/unittests/libdbpp-odbc b/libdbpp/unittests/libdbpp-odbc -Subproject dbf98a34e08558b91328cb414447e9961c22203 +Subproject 3eb8f4b130eb815aa3ff7cfbb89d05ebce21635 diff --git a/libdbpp/unittests/libdbpp-postgresql b/libdbpp/unittests/libdbpp-postgresql -Subproject 216c87cbb7228d9130eead5e374dfd7a11a96b9 +Subproject 3e305e46d818a28a9c1cbb814bdc3dd72605d80 diff --git a/libdbpp/unittests/libdbpp-sqlite b/libdbpp/unittests/libdbpp-sqlite -Subproject 7e5c360a8c8eee8ebe8b1c18e49be5b4af8dac5 +Subproject 5c72a2b6a0076d85ce12884bca3b1de89df4db1 diff --git a/libdbpp/unittests/testUtils.cpp b/libdbpp/unittests/testUtils.cpp index 8fb0510..054ffb6 100644 --- a/libdbpp/unittests/testUtils.cpp +++ b/libdbpp/unittests/testUtils.cpp @@ -139,6 +139,7 @@ BOOST_AUTO_TEST_CASE(extract) { auto db = DB::MockDatabase::openConnectionTo("pqmock"); auto sel = db->select("SELECT a, b, c FROM forEachRow WHERE f"); + // cppcheck-suppress assertWithSideEffect BOOST_REQUIRE(sel->fetch()); int64_t lint; double ldouble; @@ -160,6 +161,7 @@ BOOST_AUTO_TEST_CASE(extract) BOOST_REQUIRE_THROW((*sel)[2] >> ldouble, DB::InvalidConversion); BOOST_REQUIRE_THROW((*sel)[1] >> lstring, DB::InvalidConversion); BOOST_REQUIRE_THROW((*sel)[0] >> lstring, DB::InvalidConversion); + // cppcheck-suppress assertWithSideEffect BOOST_REQUIRE(!sel->fetch()); } |