diff options
Diffstat (limited to 'source4')
-rwxr-xr-x | source4/scripting/swig/torture/torture_tdb.py | 8 |
1 files changed, 8 insertions, 0 deletions
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) |