X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=bfile%2Ftstbfile2.c;fp=bfile%2Ftstbfile2.c;h=44ab3ca0f69e91e72f2e237f1412bb8df3275849;hb=1bf3c420dad254b9b0275f28541772e28197e19f;hp=0b221c907087c22e32906461ec4ce37b8a0c63c4;hpb=c8816fc1830fcfa92a58c82506fa665eeac8713c;p=idzebra-moved-to-github.git diff --git a/bfile/tstbfile2.c b/bfile/tstbfile2.c index 0b221c9..44ab3ca 100644 --- a/bfile/tstbfile2.c +++ b/bfile/tstbfile2.c @@ -1,4 +1,4 @@ -/* $Id: tstbfile2.c,v 1.1 2006-11-08 12:59:27 adam Exp $ +/* $Id: tstbfile2.c,v 1.2 2006-11-08 13:05:33 adam Exp $ Copyright (C) 1995-2006 Index Data ApS @@ -67,6 +67,19 @@ void tst(void) bf_reset(bfs); +#if 1 + /* we have to destroy bfs after reset. Unfortunately! */ + bfs_destroy(bfs); + + bfs = bfs_create("register:4M", 0 /* base: current dir */); + YAZ_CHECK(bfs); + if (!bfs) + return; + + r = bf_cache(bfs, "shadow:4M"); + YAZ_CHECK_EQ(r, ZEBRA_OK); +#endif + bf = bf_open(bfs, "file", block_size, 1); YAZ_CHECK(bf); if (bf)