mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
#4429 fix test for bdb 5.3 refs[t:4429]
git-svn-id: file:///svn/toku/tokudb@39114 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
ef5fc5a2a9
commit
254d7ce411
1 changed files with 9 additions and 3 deletions
|
@ -30,12 +30,18 @@ test_main(int argc, char*const* argv) {
|
|||
assert(r == 0);
|
||||
|
||||
r = dbenv->open(dbenv, ENVDIR, DB_CREATE|DB_INIT_MPOOL|DB_PRIVATE, 0666);
|
||||
#ifdef USE_TDB
|
||||
if (verbose) printf("r=%d\n", r);
|
||||
assert(r != 0);
|
||||
#ifdef USE_TDB
|
||||
assert(r == EINVAL);
|
||||
#elif USE_BDB
|
||||
#if DB_VERSION_MAJOR >= 5
|
||||
assert(r == EINVAL);
|
||||
#else
|
||||
if (verbose) printf("test_db_env_open_open_close.bdb skipped. (BDB apparently does not follow the spec).\n");
|
||||
assert(r==0);
|
||||
assert(r == 0);
|
||||
#endif
|
||||
#else
|
||||
#error
|
||||
#endif
|
||||
|
||||
r = dbenv->close(dbenv, 0);
|
||||
|
|
Loading…
Add table
Reference in a new issue