From fa5cafcb9fa2606ad215b9205553329189175ec8 Mon Sep 17 00:00:00 2001 From: Rich Prohaska <prohaska@tokutek.com> Date: Fri, 14 Dec 2007 23:04:31 +0000 Subject: [PATCH] closes #190 git-svn-id: file:///svn/tokudb@1139 c7de825b-a66e-492c-adef-691d508d4ae1 --- src/tests/test_env_close_flags.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/test_env_close_flags.c b/src/tests/test_env_close_flags.c index b0d95a3bd6..21b362a091 100644 --- a/src/tests/test_env_close_flags.c +++ b/src/tests/test_env_close_flags.c @@ -25,7 +25,7 @@ int main (int argc __attribute__((__unused__)), char *argv[] __attribute__((__u r=db_env_create(&env, 0); assert(r==0); r=env->close (env, 1); //BDB does not check this in some versions -#if defined(USE_TDB) +#if defined(USE_TDB) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 3) assert(r==EINVAL); #else assert(r==0); @@ -44,7 +44,7 @@ int main (int argc __attribute__((__unused__)), char *argv[] __attribute__((__u r=env->open(env, DIR, DB_INIT_LOCK|DB_INIT_LOG|DB_INIT_MPOOL|DB_INIT_TXN|DB_PRIVATE|DB_CREATE, 0777); CKERR(r); r=env->close (env, 1); //BDB does not check this. -#ifdef USE_TDB +#if defined(USE_TDB) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 3) assert(r==EINVAL); #else assert(r==0); -- 2.30.9