From 61bdad3aaecddfe33145cc134f1c8b1c669175f7 Mon Sep 17 00:00:00 2001 From: Kelvin Hammond Date: Thu, 10 Sep 2020 19:03:00 -0400 Subject: [PATCH] Added test for Savepoint, calling rollback after release or commit --- tests/Savepoint_test.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Savepoint_test.cpp b/tests/Savepoint_test.cpp index 01f9720..b1e1e44 100644 --- a/tests/Savepoint_test.cpp +++ b/tests/Savepoint_test.cpp @@ -42,6 +42,7 @@ TEST(Savepoint, commitRollback) { // Commit again throw an exception EXPECT_THROW(savepoint.release(), SQLite::Exception); + EXPECT_THROW(savepoint.rollback(), SQLite::Exception); } // Auto rollback if no release() before the end of scope