From eafd96227cfc24afe0c3cda4b02c1e21a51e4a1f Mon Sep 17 00:00:00 2001 From: Derek Atkins Date: Fri, 9 Jul 2004 15:01:07 +0000 Subject: [PATCH] Make the bug#147025 failure reproducible. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10187 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/engine/test/test-lots.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/engine/test/test-lots.c b/src/engine/test/test-lots.c index 8da22c90ab..6fa2044ada 100644 --- a/src/engine/test/test-lots.c +++ b/src/engine/test/test-lots.c @@ -59,12 +59,15 @@ main_helper (void *closure, int argc, char **argv) * 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 (); }