Commit 6593d319 authored by Yoni Fogel's avatar Yoni Fogel

NULL home to dbenv now defaults to '.' instead of

EINVAL.
addresses #59

git-svn-id: file:///svn/tokudb@792 c7de825b-a66e-492c-adef-691d508d4ae1
parent ec8b57e0
...@@ -18,7 +18,6 @@ int main (int argc, char *argv[]) { ...@@ -18,7 +18,6 @@ int main (int argc, char *argv[]) {
// None of this stuff works with BDB. TDB does more error checking. // None of this stuff works with BDB. TDB does more error checking.
#ifdef USE_TDB #ifdef USE_TDB
r=env->set_data_dir(env, NULL); assert(r==EINVAL); r=env->set_data_dir(env, NULL); assert(r==EINVAL);
r=env->open(env, NULL, DB_PRIVATE, 0777); assert(r==EINVAL);
r=env->open(env, DIR, DB_PRIVATE, 0777); assert(r==0); r=env->open(env, DIR, DB_PRIVATE, 0777); assert(r==0);
env->set_errpfx(env, NULL); assert(1); //Did not crash. env->set_errpfx(env, NULL); assert(1); //Did not crash.
r=env->set_tmp_dir(env, NULL); assert(r==EINVAL); r=env->set_tmp_dir(env, NULL); assert(r==EINVAL);
......
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