fix some bdb tests closes[t:2175]

git-svn-id: file:///svn/toku/tokudb@15826 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Rich Prohaska 2013-04-16 23:58:52 -04:00 committed by Yoni Fogel
parent 7ac59d04df
commit aae91f17ac
2 changed files with 11 additions and 3 deletions

View file

@ -113,6 +113,7 @@ BDB_DONTRUN_TESTS = \
recover-compare-db \
recover-compare-db-descriptor \
test_cursor_delete_2119 \
transactional_fileops \
#\ ends prev line
# checkpoint tests depend on this header file,

View file

@ -41,9 +41,16 @@ test_main (int UU(argc), char UU(*argv[])) {
r=db->put(db, tid, &key, &data, 0);
CKERR(r);
}
r=db->close(db, 0); assert(r==0);
r=tid->abort(tid); assert(r==0);
r=env->close(env, 0); assert(r==0);
r=db->close(db, 0);
assert(r==0);
r=tid->abort(tid);
assert(r==0);
r=env->close(env, 0);
#if USE_BDB
assert(r==ENOENT);
#else
assert(r==0);
#endif
{
toku_struct_stat statbuf;
r = toku_stat(ENVDIR "/foo.db", &statbuf);