Commit 7cb7ee46 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

#4429 fix test for bdb 5.3 refs[t:4429]

git-svn-id: file:///svn/toku/tokudb@39114 c7de825b-a66e-492c-adef-691d508d4ae1
parent 192a574a
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment