rw_test.c

00001 #include <stdio.h>
00002 #include <stdlib.h>
00003 #include <string.h>
00004 #include "rw_suite.h"
00005 #include "CUnit.h"
00006 #include "TestDB.h"
00007 #include "Basic.h"
00008 
00009 
00010 
00011 int main(int argc, char* argv[])
00012 {
00013     CU_BasicRunMode mode = CU_BRM_VERBOSE;
00014     unsigned int ret;
00015 
00016     if (CU_initialize_registry()) 
00017         printf("\nInitialization of Test Registry failed.");
00018     
00019     add_suite_rw();
00020     
00021     CU_basic_set_mode(mode);
00022     printf("\nTests completed with return value %d.\n", CU_basic_run_tests());
00023     printf("\nTests failed %d.\n", ret = CU_get_number_of_tests_failed() );
00024 
00025     CU_cleanup_registry();
00026 
00027     if ( ret == 0 ) 
00028         return EXIT_SUCCESS;
00029     else
00030         return EXIT_FAILURE;
00031 
00032 }
Generato il Fri Jan 28 22:16:31 2011 per SFAT: Simplified File Allocation Table Project da  doxygen 1.6.3