/*********************************************************************** Copyright (c) 2008 Innobase Oy. All rights reserved. Copyright (c) 2008 Oracle. All rights reserved. Copyright (c) 2009 Oracle. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ************************************************************************/ #include #include #include #ifdef WIN32 #include #else #include /* For sleep() */ #endif #include "test0aux.h" #ifdef UNIV_DEBUG_VALGRIND #include #endif int main() { int i; for (i = 0; i < 10; ++i) { ib_ulint_t err; printf(" *** STARTING INNODB *** \n"); ib_init(); test_configure(); #ifdef WIN32 Sleep(2); #else sleep(2); #endif err = ib_shutdown(); assert(err == DB_SUCCESS); printf(" *** SHUTDOWN OF INNODB COMPLETE *** \n"); /* Note: We check for whether variables are reset to their default values externally. */ #ifdef UNIV_DEBUG_VALGRIND VALGRIND_DO_LEAK_CHECK; #endif } return(EXIT_SUCCESS); }