aboutsummaryrefslogtreecommitdiff
path: root/tracer/transaction/driver.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'tracer/transaction/driver.cxx')
-rw-r--r--tracer/transaction/driver.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/tracer/transaction/driver.cxx b/tracer/transaction/driver.cxx
index f6945d4..e1c7849 100644
--- a/tracer/transaction/driver.cxx
+++ b/tracer/transaction/driver.cxx
@@ -33,6 +33,12 @@ main ()
assert (&t.database () == &db);
assert (transaction::has_current ());
assert (&transaction::current () == &t);
+ transaction::reset_current ();
+ assert (!transaction::has_current ());
+ transaction t2 (db.begin (), false);
+ assert (!transaction::has_current ());
+ transaction::current (t2);
+ assert (&transaction::current () == &t2);
}
// Commit.