[grisbi-cvs] grisbi/src gsb_data_account_cunit.c, NONE, 1.1 gsb_data_account_cunit.h, NONE, 1.1 gsb_data_account.c, 1.76, 1.77 gsb_data_account.h, 1.35, 1.36 main_cunit.c, 1.1, 1.2

Mickaƫl Remars mykeul at users.sourceforge.net
Sat May 23 17:47:33 CEST 2009


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

Modified Files:
	gsb_data_account.c gsb_data_account.h main_cunit.c 
Added Files:
	gsb_data_account_cunit.c gsb_data_account_cunit.h 
Log Message:
Added a new unit-test showing an issue (temporary overflow) when computing balances

Index: gsb_data_account.h
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_data_account.h,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- gsb_data_account.h	21 May 2009 21:58:55 -0000	1.35
+++ gsb_data_account.h	23 May 2009 15:47:31 -0000	1.36
@@ -27,6 +27,7 @@
 void gsb_data_account_colorize_current_balance ( gint account_number );
 gint gsb_data_account_compare_position ( gint account_number_1,
                         gint account_number_2 );
+gsb_real gsb_data_account_calculate_current_and_marked_balances ( gint account_number );
 gboolean gsb_data_account_delete ( gint account_number );
 gint gsb_data_account_first_number ( void );
 gint gsb_data_account_get_account_by_id ( const gchar *account_id );

Index: gsb_data_account.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_data_account.c,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -d -r1.76 -r1.77
--- gsb_data_account.c	21 May 2009 21:58:55 -0000	1.76
+++ gsb_data_account.c	23 May 2009 15:47:31 -0000	1.77
@@ -118,7 +118,6 @@
 
 /*START_STATIC*/
 static  void _gsb_data_account_free ( struct_account* account );
-static gsb_real gsb_data_account_calculate_current_and_marked_balances ( gint account_number );
 static void gsb_data_account_delete_all_accounts (void);
 static struct_account *gsb_data_account_get_structure ( gint no );
 static gint gsb_data_account_max_number ( void );

--- NEW FILE: gsb_data_account_cunit.h ---
#ifndef _GSB_DATA_ACCOUNT_CUNIT_H
#define _GSB_DATA_ACCOUNT_CUNIT_H (1)

#include <CUnit/Basic.h>

/* START_INCLUDE_H */
/* END_INCLUDE_H */

/* START_DECLARATION */
CU_pSuite gsb_data_account_cunit_create_suite ( void );
/* END_DECLARATION */

#endif//_GSB_DATA_ACCOUNT_CUNIT_H

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

Index: main_cunit.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/main_cunit.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- main_cunit.c	22 May 2009 18:43:33 -0000	1.1
+++ main_cunit.c	23 May 2009 15:47:31 -0000	1.2
@@ -40,6 +40,7 @@
 #include "include.h"
 
 /*START_INCLUDE*/
+#include "gsb_data_account_cunit.h"
 #include "gsb_real_cunit.h"
 #include "utils_dates_cunit.h"
 /*END_INCLUDE*/
@@ -61,7 +62,8 @@
         return CU_get_error();
 
     /* add a suite to the registry */
-    if ( ( NULL == gsb_real_cunit_create_suite ( ) )
+    if ( ( NULL == gsb_data_account_cunit_create_suite ( ) )
+      || ( NULL == gsb_real_cunit_create_suite ( ) )
       || ( NULL == utils_dates_cunit_create_suite ( ) )
         )
     {



More information about the cvs mailing list