svn commit: samba r15345 - in
branches/SAMBA_4_0/source/scripting/swig/torture: .
tpot at samba.org
tpot at samba.org
Sun Apr 30 01:01:00 GMT 2006
Author: tpot
Date: 2006-04-30 01:00:57 +0000 (Sun, 30 Apr 2006)
New Revision: 15345
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=15345
Log:
Add a read-only test to tdb torture tester.
Modified:
branches/SAMBA_4_0/source/scripting/swig/torture/torture_tdb.py
Changeset:
Modified: branches/SAMBA_4_0/source/scripting/swig/torture/torture_tdb.py
===================================================================
--- branches/SAMBA_4_0/source/scripting/swig/torture/torture_tdb.py 2006-04-30 00:40:04 UTC (rev 15344)
+++ branches/SAMBA_4_0/source/scripting/swig/torture/torture_tdb.py 2006-04-30 01:00:57 UTC (rev 15345)
@@ -77,6 +77,14 @@
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)
More information about the samba-cvs
mailing list