[t:3698], make similar fix for keyrange-unflat in src/tests

git-svn-id: file:///svn/toku/tokudb@32894 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Zardosht Kasheff 2013-04-16 23:59:43 -04:00 committed by Yoni Fogel
parent 1e928e3604
commit a13dc50995

View file

@ -20,8 +20,8 @@ static void test (void) {
CKERR(r);
r=toku_os_mkdir(ENVDIR, S_IRWXU+S_IRWXG+S_IRWXO); CKERR(r);
r=db_env_create(&env, 0); CKERR(r);
// set the cachetable to size 1 so that things won't fit.
r=env->set_cachesize(env, 0, 1, 1);
// set the cachetable to size 0 so that things fit.
r=env->set_cachesize(env, 0, 0, 1);
env->set_errfile(env, stderr);
r=env->open(env, ENVDIR, DB_INIT_LOCK|DB_INIT_LOG|DB_INIT_MPOOL|DB_INIT_TXN|DB_CREATE|DB_PRIVATE, S_IRWXU+S_IRWXG+S_IRWXO); CKERR(r);
r=db_create(&db, env, 0); CKERR(r);