mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Get 'make check' working again.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/remove-group2@15598 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
f7ef3e3bf5
commit
d1ab2bdd57
@ -93,7 +93,7 @@ guile_main (void *closure, int argc, char **argv)
|
||||
gchar *to_open = g_build_filename(location, entry, (gchar*)NULL);
|
||||
if (!g_file_test(to_open, G_FILE_TEST_IS_DIR))
|
||||
{
|
||||
test_load_file(book, to_open);
|
||||
test_load_file(to_open);
|
||||
}
|
||||
g_free(to_open);
|
||||
}
|
||||
|
@ -365,12 +365,16 @@ test_transaction(void)
|
||||
for(i = 0; i < 50; i++)
|
||||
{
|
||||
Transaction *ran_trn;
|
||||
Account *root;
|
||||
xmlNodePtr test_node;
|
||||
gnc_commodity *com;
|
||||
gchar *compare_msg;
|
||||
gchar *filename1;
|
||||
int fd;
|
||||
|
||||
/* The next line exists for its side effect of creating the
|
||||
* account tree. */
|
||||
root = get_random_account_tree(book);
|
||||
ran_trn = get_random_transaction(book);
|
||||
if(!ran_trn)
|
||||
{
|
||||
|
@ -246,6 +246,7 @@ gnc_account_create_root (QofBook *book)
|
||||
root = xaccMallocAccount(book);
|
||||
xaccAccountBeginEdit(root);
|
||||
root->type = ACCT_TYPE_ROOT;
|
||||
CACHE_REPLACE(root->accountName, _("Root Account"));
|
||||
xaccAccountCommitEdit(root);
|
||||
gnc_book_set_root_account(book, root);
|
||||
return root;
|
||||
|
@ -868,7 +868,7 @@ make_random_account_tree (QofBook *book, Account *root)
|
||||
}
|
||||
|
||||
Account *
|
||||
get_random_accounts (QofBook *book)
|
||||
get_random_account_tree (QofBook *book)
|
||||
{
|
||||
Account * root;
|
||||
|
||||
@ -1855,7 +1855,7 @@ get_random_book (void)
|
||||
|
||||
book = qof_book_new ();
|
||||
|
||||
get_random_accounts (book);
|
||||
get_random_account_tree (book);
|
||||
get_random_pricedb (book);
|
||||
|
||||
return book;
|
||||
@ -1871,7 +1871,7 @@ get_random_session (void)
|
||||
|
||||
book = qof_session_get_book (session);
|
||||
|
||||
get_random_accounts (book);
|
||||
get_random_account_tree (book);
|
||||
get_random_pricedb (book);
|
||||
|
||||
return session;
|
||||
|
@ -42,7 +42,7 @@ void set_max_accounts_per_level (gint max_accounts);
|
||||
GNCPrice * get_random_price(QofBook *book);
|
||||
gboolean make_random_pricedb (QofBook *book, GNCPriceDB *pdb);
|
||||
GNCPriceDB * get_random_pricedb(QofBook *book);
|
||||
Account * get_random_accounts(QofBook * book);
|
||||
Account * get_random_account_tree(QofBook * book);
|
||||
Account* get_random_account(QofBook * book);
|
||||
Split* get_random_split(QofBook *book, Account *account, Transaction *trn);
|
||||
Transaction* get_random_transaction(QofBook *book);
|
||||
|
Loading…
Reference in New Issue
Block a user