Mercurial > MadButterfly
comparison src/testcase.c @ 12:79e9edf4c00a
Add redraw manager
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Mon, 28 Jul 2008 17:45:36 +0800 |
parents | 9c331ec9e210 |
children | c986e45c1e91 |
comparison
equal
deleted
inserted
replaced
11:128af06c876c | 12:79e9edf4c00a |
---|---|
1 #include <CUnit/Basic.h> | 1 #include <CUnit/Basic.h> |
2 | 2 |
3 extern CU_pSuite get_tools_suite(void); | |
3 extern CU_pSuite get_coord_suite(void); | 4 extern CU_pSuite get_coord_suite(void); |
4 extern CU_pSuite get_geo_suite(void); | 5 extern CU_pSuite get_geo_suite(void); |
5 extern CU_pSuite get_shape_path_suite(void); | 6 extern CU_pSuite get_shape_path_suite(void); |
7 extern CU_pSuite get_redraw_man_suite(void); | |
6 | 8 |
7 int | 9 int |
8 main(int argc, char * const argv[]) { | 10 main(int argc, char * const argv[]) { |
9 CU_pSuite suite; | 11 CU_pSuite suite; |
10 | 12 |
11 if(CU_initialize_registry() != CUE_SUCCESS) | 13 if(CU_initialize_registry() != CUE_SUCCESS) |
12 return CU_get_error(); | 14 return CU_get_error(); |
13 | 15 |
14 get_coord_suite(); | 16 suite = get_tools_suite(); |
15 get_geo_suite(); | 17 if(suite == NULL) |
16 get_shape_path_suite(); | 18 return CU_get_error(); |
19 suite = get_coord_suite(); | |
20 if(suite == NULL) | |
21 return CU_get_error(); | |
22 suite = get_geo_suite(); | |
23 if(suite == NULL) | |
24 return CU_get_error(); | |
25 suite = get_shape_path_suite(); | |
26 if(suite == NULL) | |
27 return CU_get_error(); | |
28 suite = get_redraw_man_suite(); | |
29 if(suite == NULL) | |
30 return CU_get_error(); | |
17 | 31 |
18 CU_basic_set_mode(CU_BRM_VERBOSE); | 32 CU_basic_set_mode(CU_BRM_VERBOSE); |
19 CU_basic_run_tests(); | 33 CU_basic_run_tests(); |
20 CU_cleanup_registry(); | 34 CU_cleanup_registry(); |
21 | 35 |