mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
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:
parent
7ac59d04df
commit
aae91f17ac
2 changed files with 11 additions and 3 deletions
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue