ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

lwip_unittests.c
Go to the documentation of this file.
00001 #include "lwip_check.h"
00002 
00003 #include "udp/test_udp.h"
00004 #include "tcp/test_tcp.h"
00005 #include "tcp/test_tcp_oos.h"
00006 #include "core/test_mem.h"
00007 #include "etharp/test_etharp.h"
00008 
00009 #include "lwip/init.h"
00010 
00011 
00012 int main()
00013 {
00014   int number_failed;
00015   SRunner *sr;
00016   size_t i;
00017   suite_getter_fn* suites[] = {
00018     udp_suite,
00019     tcp_suite,
00020     tcp_oos_suite,
00021     mem_suite,
00022     etharp_suite,
00023   };
00024   size_t num = sizeof(suites)/sizeof(void*);
00025   LWIP_ASSERT("No suites defined", num > 0);
00026 
00027   lwip_init();
00028 
00029   sr = srunner_create((suites[0])());
00030   for(i = 1; i < num; i++) {
00031     srunner_add_suite(sr, ((suite_getter_fn*)suites[i])());
00032   }
00033 
00034 #ifdef LWIP_UNITTESTS_NOFORK
00035   srunner_set_fork_status(sr, CK_NOFORK);
00036 #endif
00037 #ifdef LWIP_UNITTESTS_FORK
00038   srunner_set_fork_status(sr, CK_FORK);
00039 #endif
00040 
00041   srunner_run_all(sr, CK_NORMAL);
00042   number_failed = srunner_ntests_failed(sr);
00043   srunner_free(sr);
00044   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
00045 }
00046 

Generated on Sun May 27 2012 04:36:11 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.