Commit 916ee9a6 authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

[t:4377] hot-optimize-table-tests should close the environment


git-svn-id: file:///svn/toku/tokudb@38635 c7de825b-a66e-492c-adef-691d508d4ae1
parent cbbd5174
......@@ -68,6 +68,12 @@ hot_test_setup(void)
CHK(env->open(env, ENVDIR, envflags, S_IRWXU+S_IRWXG+S_IRWXO));
}
static void
hot_test_destroy(void)
{
CHK(env->close(env, 0));
}
///
static void
hot_insert_keys(DB* db, unsigned int key_count)
......@@ -178,11 +184,18 @@ test_main(int argc, char * const argv[])
hot_create_db(&db, "none.db");
hot_test(db, NONE);
r = db->close(db, 0);
CKERR(r);
hot_create_db(&db, "small.db");
hot_test(db, SMALL);
r = db->close(db, 0);
CKERR(r);
hot_create_db(&db, "big.db");
hot_test(db, BIG);
r = db->close(db, 0);
CKERR(r);
hot_test_destroy();
verbose ? printf("Exiting Test.\n") : 0;
return r;
}
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