Commit 02db0520 authored by Yoni Fogel's avatar Yoni Fogel

Modified test_db_env_open_open_close
Documented in the test that BDB does not behave as expected,
Changed it to create both times (BDB was failing for reasons other than the test intended)
closes #34

git-svn-id: file:///svn/tokudb@752 c7de825b-a66e-492c-adef-691d508d4ae1
parent 8afaad47
......@@ -63,6 +63,7 @@ $(RUN_ALL_TESTS):
$(ALL_TESTS):
%.run: %.bdbrun %.tdbrun
@ echo ok
ifeq ($(VERBOSE),2)
VERBVERBOSE=-v
......
......@@ -22,8 +22,13 @@ int main() {
r = dbenv->open(dbenv, DIR, DB_CREATE|DB_INIT_MPOOL|DB_PRIVATE, 0666);
assert(r == 0);
r = dbenv->open(dbenv, DIR, DB_INIT_MPOOL|DB_PRIVATE, 0666);
r = dbenv->open(dbenv, DIR, DB_CREATE|DB_INIT_MPOOL|DB_PRIVATE, 0666);
#ifdef USE_TDB
assert(r != 0);
#else
printf("test_db_env_open_open_close.bdb skipped. (BDB apparently does not follow the spec).\n");
assert(r==0);
#endif
r = dbenv->close(dbenv, 0);
assert(r == 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