* src/engine/test-core/test-engine-stuff.c: random queries only

get up to 3 terms, not 4
	* src/app-utils/test/test-scm-query-string.c: loop the test 1000
	  times, now that the queries are smaller.
	Fixes #127492


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9749 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Derek Atkins 2004-01-02 23:21:51 +00:00
parent 1cede8ddbf
commit e5392da8d6
3 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,11 @@
2003-01-02 Derek Atkins <derek@ihtfp.com>
* src/engine/test-core/test-engine-stuff.c: random queries only
get up to 3 terms, not 4
* src/app-utils/test/test-scm-query-string.c: loop the test 1000
times, now that the queries are smaller.
Fixes #127492
* src/business/business-core/gncInvoice.c: set the lot title to
"<Invoice Type> <Invoice ID>" (e.g., "Invoice 000001" or
"Bill I2-34") when posting an invoice. We already assume

View File

@ -64,7 +64,7 @@ run_tests (void)
val2str = scm_c_eval_string ("gnc:value->string");
g_return_if_fail (SCM_PROCEDUREP (val2str));
for (i = 0; i < 244; i++) {
for (i = 0; i < 1000; i++) {
q = get_random_query ();
test_query (q, val2str);
xaccFreeQuery (q);

View File

@ -1355,7 +1355,7 @@ get_random_query(void)
Query *q;
int num_terms;
num_terms = get_random_int_in_range (1, 4);
num_terms = get_random_int_in_range (1, 3);
if (gnc_engine_debug_random) printf("num_terms = %d", num_terms);
q = xaccMallocQuery ();