diff 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
line wrap: on
line diff
--- a/src/testcase.c	Sat Jul 26 06:34:15 2008 +0800
+++ b/src/testcase.c	Mon Jul 28 17:45:36 2008 +0800
@@ -1,8 +1,10 @@
 #include <CUnit/Basic.h>
 
+extern CU_pSuite get_tools_suite(void);
 extern CU_pSuite get_coord_suite(void);
 extern CU_pSuite get_geo_suite(void);
 extern CU_pSuite get_shape_path_suite(void);
+extern CU_pSuite get_redraw_man_suite(void);
 
 int
 main(int argc, char * const argv[]) {
@@ -11,9 +13,21 @@
     if(CU_initialize_registry() != CUE_SUCCESS)
 	return CU_get_error();
 
-    get_coord_suite();
-    get_geo_suite();
-    get_shape_path_suite();
+    suite = get_tools_suite();
+    if(suite == NULL)
+	return CU_get_error();
+    suite = get_coord_suite();
+    if(suite == NULL)
+	return CU_get_error();
+    suite = get_geo_suite();
+    if(suite == NULL)
+	return CU_get_error();
+    suite = get_shape_path_suite();
+    if(suite == NULL)
+	return CU_get_error();
+    suite = get_redraw_man_suite();
+    if(suite == NULL)
+	return CU_get_error();
 
     CU_basic_set_mode(CU_BRM_VERBOSE);
     CU_basic_run_tests();