Skip to content

Commit 61bdad3

Browse files
committed
Added test for Savepoint, calling rollback after release or commit
1 parent ee6762c commit 61bdad3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/Savepoint_test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ TEST(Savepoint, commitRollback) {
4242

4343
// Commit again throw an exception
4444
EXPECT_THROW(savepoint.release(), SQLite::Exception);
45+
EXPECT_THROW(savepoint.rollback(), SQLite::Exception);
4546
}
4647

4748
// Auto rollback if no release() before the end of scope

0 commit comments

Comments
 (0)