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

EINVAL.
addresses #59

git-svn-id: file:///svn/tokudb@792 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Yoni Fogel 2007-11-28 17:08:45 +00:00
parent f32c1f3196
commit 8fb3002f43

View file

@ -18,7 +18,6 @@ int main (int argc, char *argv[]) {
// None of this stuff works with BDB. TDB does more error checking.
#ifdef USE_TDB
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);
env->set_errpfx(env, NULL); assert(1); //Did not crash.
r=env->set_tmp_dir(env, NULL); assert(r==EINVAL);