Commit 57bd9114 authored by Yoni Fogel's avatar Yoni Fogel

[t:2257] Src tests and newbrt tests now verify init and destroy function succeed

git-svn-id: file:///svn/toku/tokudb@16996 c7de825b-a66e-492c-adef-691d508d4ae1
parent fe2d1b83
...@@ -90,9 +90,11 @@ static void dummy(void) {} ...@@ -90,9 +90,11 @@ static void dummy(void) {}
int int
main(int argc, const char *argv[]) { main(int argc, const char *argv[]) {
toku_brt_init(dummy, dummy); int rinit = toku_brt_init(dummy, dummy);
CKERR(rinit);
int r = test_main(argc, argv); int r = test_main(argc, argv);
toku_brt_destroy(); int rdestroy = toku_brt_destroy();
CKERR(rdestroy);
return r; return r;
} }
...@@ -162,7 +162,8 @@ int ...@@ -162,7 +162,8 @@ int
main(int argc, char *argv[]) { main(int argc, char *argv[]) {
int r; int r;
#if IS_TDB && (defined(_WIN32) || defined(_WIN64)) #if IS_TDB && (defined(_WIN32) || defined(_WIN64))
toku_ydb_init(); int rinit = toku_ydb_init();
CKERR(rinit);
#endif #endif
#if !IS_TDB && DB_VERSION_MINOR==4 && DB_VERSION_MINOR == 7 #if !IS_TDB && DB_VERSION_MINOR==4 && DB_VERSION_MINOR == 7
r = db_env_set_func_malloc(toku_malloc); assert(r==0); r = db_env_set_func_malloc(toku_malloc); assert(r==0);
...@@ -172,7 +173,8 @@ main(int argc, char *argv[]) { ...@@ -172,7 +173,8 @@ main(int argc, char *argv[]) {
toku_os_initialize_settings(1); toku_os_initialize_settings(1);
r = test_main(argc, argv); r = test_main(argc, argv);
#if IS_TDB && (defined(_WIN32) || defined(_WIN64)) #if IS_TDB && (defined(_WIN32) || defined(_WIN64))
toku_ydb_destroy(); int rdestroy = toku_ydb_destroy();
CKERR(rdestroy);
#endif #endif
return r; 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