mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
* 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:
parent
1cede8ddbf
commit
e5392da8d6
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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 ();
|
||||
|
Loading…
Reference in New Issue
Block a user