[grisbi-cvs] grisbi/src utils_dates_cunit.c, NONE, 1.1 utils_dates_cunit.h, NONE, 1.1 Makefile.am, 1.154, 1.155 main.c, 1.143, 1.144

Mickaƫl Remars mykeul at users.sourceforge.net
Thu May 21 11:42:55 CEST 2009


Update of /cvsroot/grisbi/grisbi/src
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv27047/src

Modified Files:
	Makefile.am main.c 
Added Files:
	utils_dates_cunit.c utils_dates_cunit.h 
Log Message:
Added a few unit-tests on gsb_parse_date_string()

--- NEW FILE: utils_dates_cunit.h ---
#ifndef _UTILS_DATES_CUNIT_H
#define _UTILS_DATES_CUNIT_H (1)

#include <CUnit/Basic.h>

/* START_INCLUDE_H */
/* END_INCLUDE_H */

/* START_DECLARATION */
CU_pSuite utils_dates_cunit_create_suite ( );
/* END_DECLARATION */

#endif//_UTILS_DATES_CUNIT_H

--- NEW FILE: utils_dates_cunit.c ---
(This appears to be a binary file; contents omitted.)

Index: main.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/main.c,v
retrieving revision 1.143
retrieving revision 1.144
diff -u -d -r1.143 -r1.144
--- main.c	17 May 2009 15:53:25 -0000	1.143
+++ main.c	21 May 2009 09:42:53 -0000	1.144
@@ -89,6 +89,7 @@
 #include <CUnit/Basic.h>
 
 #include "gsb_real_cunit.h"
+#include "utils_dates_cunit.h"
 
 int gsb_cunit_run_tests()
 {
@@ -97,8 +98,9 @@
         return CU_get_error();
 
     /* add a suite to the registry */
-    CU_pSuite pSuite = gsb_real_cunit_create_suite();
-    if(NULL == pSuite)
+    if ( ( NULL == gsb_real_cunit_create_suite ( ) )
+      || ( NULL == utils_dates_cunit_create_suite ( ) )
+        )
     {
         CU_cleanup_registry();
         return CU_get_error();

Index: Makefile.am
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/Makefile.am,v
retrieving revision 1.154
retrieving revision 1.155
diff -u -d -r1.154 -r1.155
--- Makefile.am	11 May 2009 18:54:27 -0000	1.154
+++ Makefile.am	21 May 2009 09:42:53 -0000	1.155
@@ -138,6 +138,7 @@
 	utils.c			\
 	utils_buttons.c		\
 	utils_dates.c		\
+	utils_dates_cunit.c		\
 	utils_editables.c	\
 	utils_file_selection.c	\
 	utils_files.c		\
@@ -283,6 +284,7 @@
 	utils.h			\
 	utils_buttons.h		\
 	utils_dates.h		\
+	utils_dates_cunit.h		\
 	utils_editables.h	\
 	utils_file_selection.h	\
 	utils_files.h		\



More information about the cvs mailing list