Restructure for clarity.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13943 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Joshua Sled 2006-05-07 21:39:56 +00:00
parent 3a2fa62d87
commit 728dc7a8d0

View File

@ -95,14 +95,19 @@ main (int argc, char **argv)
/* Always start from the same random seed so we fail consistently */
srand(0);
if(cashobjects_register()) {
/* Loop the test. */
for (i=0; i < 10; i++)
{
run_test ();
}
if(!cashobjects_register()) {
failure("can't register cashbojects");
goto cleanup;
}
/* Loop the test. */
for (i=0; i < 10; i++)
{
run_test ();
}
success("queries seem to work");
cleanup:
qof_close();
return 0;
}