summaryrefslogtreecommitdiff
path: root/lib/tdb2/test/run-tdb1-zero-append.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-09-14 07:51:13 +0930
committerRusty Russell <rusty@rustcorp.com.au>2011-09-14 07:51:13 +0930
commit02f5b8fef868b7f77f1ac385740328757bff4d93 (patch)
tree5b3a4c3bb3d001bbcc08a0e9cc6968536a2b7d73 /lib/tdb2/test/run-tdb1-zero-append.c
parentf68a56ce8f38cc1768d8c2dca84f456f4ecfc625 (diff)
downloadsamba-02f5b8fef868b7f77f1ac385740328757bff4d93.tar.gz
samba-02f5b8fef868b7f77f1ac385740328757bff4d93.tar.bz2
samba-02f5b8fef868b7f77f1ac385740328757bff4d93.zip
tdb2: unify tdb1_fetch into tdb_fetch
Switch on the TDB_VERSION1 flag. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit 08c05da588018c6b76834e57b66d525546643708)
Diffstat (limited to 'lib/tdb2/test/run-tdb1-zero-append.c')
-rw-r--r--lib/tdb2/test/run-tdb1-zero-append.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tdb2/test/run-tdb1-zero-append.c b/lib/tdb2/test/run-tdb1-zero-append.c
index 64169087e3..560b5bc8dd 100644
--- a/lib/tdb2/test/run-tdb1-zero-append.c
+++ b/lib/tdb2/test/run-tdb1-zero-append.c
@@ -14,7 +14,7 @@ int main(int argc, char *argv[])
hsize.base.next = &tap_log_attr;
hsize.tdb1_hashsize.hsize = 1024;
- plan_tests(4);
+ plan_tests(5);
tdb = tdb_open(NULL, TDB_INTERNAL|TDB_VERSION1, O_CREAT|O_TRUNC|O_RDWR,
0600, &hsize);
ok1(tdb);
@@ -27,7 +27,7 @@ int main(int argc, char *argv[])
ok1(tdb1_append(tdb, key, data) == 0);
ok1(tdb1_append(tdb, key, data) == 0);
- data = tdb1_fetch(tdb, key);
+ ok1(tdb_fetch(tdb, key, &data) == TDB_SUCCESS);
ok1(data.dsize == 0);
free(data.dptr);
tdb_close(tdb);