[Gnucash-changes] Make the bug#147025 failure reproducible.

Derek Atkins warlord at cvs.gnucash.org
Fri Jul 9 11:01:08 EDT 2004


Log Message:
-----------
Make the bug#147025 failure reproducible.

Modified Files:
--------------
    gnucash/src/engine/test:
        test-lots.c

Revision Data
-------------
Index: test-lots.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/engine/test/test-lots.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -Lsrc/engine/test/test-lots.c -Lsrc/engine/test/test-lots.c -u -r1.8 -r1.9
--- src/engine/test/test-lots.c
+++ src/engine/test/test-lots.c
@@ -59,12 +59,15 @@
    * automatically fail! */
   g_log_set_always_fatal( G_LOG_LEVEL_CRITICAL | G_LOG_LEVEL_WARNING );
 
-  set_success_print (TRUE);
+  //set_success_print (TRUE);
 
   do_test((NULL!=gnc_module_load("gnucash/engine", 0)), "load engine");
 
+  /* Set up a reproducible test-case */
+  srand(0);
+
   /* Iterate the test a number of times */
-  for (i=0; i< 6; i++)
+  for (i=0; i< 100; i++)
   {
     run_test ();
   }


More information about the gnucash-changes mailing list