From 15a2fc8f36fb0156d58b5ba8d381ece959bcac2c Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Sun, 30 Apr 2006 01:00:57 +0000 Subject: r15345: Add a read-only test to tdb torture tester. (This used to be commit 370e5b0f8aca6972888f42b5d4a06f7895cb9858) --- source4/scripting/swig/torture/torture_tdb.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source4/scripting/swig/torture/torture_tdb.py b/source4/scripting/swig/torture/torture_tdb.py index 59eb5fe1f0..7f97caf6cb 100755 --- a/source4/scripting/swig/torture/torture_tdb.py +++ b/source4/scripting/swig/torture/torture_tdb.py @@ -77,6 +77,14 @@ if set(values) != set(['1', '12', '123']): if set(items) != set([('a', '1'), ('ab', '12'), ('abc', '123')]): fail('values method produced wrong values') +t.close() + +# Re-open read-only + +t = Tdb.Tdb(tdb_file, open_flags = os.O_RDONLY) +t.keys() +t.close() + # Clean up os.unlink(tdb_file) -- cgit