diff options
author | Tim Potter <tpot@samba.org> | 2006-04-30 01:00:57 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:05:21 -0500 |
commit | 15a2fc8f36fb0156d58b5ba8d381ece959bcac2c (patch) | |
tree | cc49e75c6d366bf1faaf0138cbc096160cf53b0b /source4/scripting/swig/torture | |
parent | 1f5a8f892ff09f2633610c0f520d96f892674933 (diff) | |
download | samba-15a2fc8f36fb0156d58b5ba8d381ece959bcac2c.tar.gz samba-15a2fc8f36fb0156d58b5ba8d381ece959bcac2c.tar.bz2 samba-15a2fc8f36fb0156d58b5ba8d381ece959bcac2c.zip |
r15345: Add a read-only test to tdb torture tester.
(This used to be commit 370e5b0f8aca6972888f42b5d4a06f7895cb9858)
Diffstat (limited to 'source4/scripting/swig/torture')
-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) |