From 068d85b1f3e0a8e70b8592e2315cac36dc4132c7 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 29 Nov 2010 08:37:20 -0500 Subject: [PATCH] Unit Tests - Added a context value for gc=1, which otherwise defaults to 0 when the Config object is empty. --- src/tests/tdb.t.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tests/tdb.t.cpp b/src/tests/tdb.t.cpp index 329c4e143..da0c075e2 100644 --- a/src/tests/tdb.t.cpp +++ b/src/tests/tdb.t.cpp @@ -55,6 +55,9 @@ int main (int argc, char** argv) unlink ("./completed.data"); unlink ("./undo.data"); + // Set the context to allow GC. + context.config.set ("gc", "on"); + // Try reading an empty database. Filter filter; std::vector all;