mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
* src/engine/test/test-period.c: must load the engine
before using it, and check to make sure the load works. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6205 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
226d8dc9a5
commit
b96b2ef575
@ -26,11 +26,18 @@ run_test (void)
|
|||||||
Timespec ts;
|
Timespec ts;
|
||||||
|
|
||||||
int ok = 1;
|
int ok = 1;
|
||||||
|
|
||||||
|
if(!gnc_module_load("gnucash/engine", 0))
|
||||||
|
{
|
||||||
|
failure("couldn't load gnucash/engine");
|
||||||
|
exit(get_rv());
|
||||||
|
}
|
||||||
|
|
||||||
if (!ok)
|
if (!ok)
|
||||||
{
|
{
|
||||||
failure ("its borken");
|
failure ("its borken");
|
||||||
}
|
}
|
||||||
|
|
||||||
book = gnc_book_new ();
|
book = gnc_book_new ();
|
||||||
if (!book)
|
if (!book)
|
||||||
{
|
{
|
||||||
@ -51,10 +58,8 @@ run_test (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
main_helper (int argc, char **argv)
|
main_helper (void *closure, int argc, char **argv)
|
||||||
{
|
{
|
||||||
gnc_module_load("gnucash/engine", 0);
|
|
||||||
|
|
||||||
run_test ();
|
run_test ();
|
||||||
|
|
||||||
success ("periods aren't realy tested yet");
|
success ("periods aren't realy tested yet");
|
||||||
@ -66,6 +71,6 @@ main_helper (int argc, char **argv)
|
|||||||
int
|
int
|
||||||
main (int argc, char **argv)
|
main (int argc, char **argv)
|
||||||
{
|
{
|
||||||
gh_enter (argc, argv, main_helper);
|
scm_boot_guile(argc, argv, main_helper, NULL);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user