Commit b4515ba2 authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul

Disable a function call that causes BDB 4.6.21 to segfault. Fixes #530.

git-svn-id: file:///svn/tokudb@2798 c7de825b-a66e-492c-adef-691d508d4ae1
parent bd81d2a9
......@@ -22,6 +22,7 @@ void test_env_open_flags(int env_open_flags, int expectr) {
r = db_env_create(&env, 0);
assert(r == 0);
env->set_errfile(env, 0);
r = env->open(env, ENVDIR, env_open_flags, 0644);
if (r != expectr && verbose) printf("env open flags=%x expectr=%d r=%d\n", env_open_flags, expectr, r);
......@@ -39,7 +40,10 @@ int main(int argc, const char *argv[]) {
/* test flags */
test_env_open_flags(0, ENOENT);
#ifdef TOKUDB
// This one segfaults in BDB 4.6.21
test_env_open_flags(DB_PRIVATE, ENOENT);
#endif
test_env_open_flags(DB_PRIVATE+DB_CREATE, 0);
test_env_open_flags(DB_PRIVATE+DB_CREATE+DB_INIT_MPOOL, 0);
test_env_open_flags(DB_PRIVATE+DB_RECOVER, 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