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,6 +26,13 @@ run_test (void)
|
||||
Timespec ts;
|
||||
|
||||
int ok = 1;
|
||||
|
||||
if(!gnc_module_load("gnucash/engine", 0))
|
||||
{
|
||||
failure("couldn't load gnucash/engine");
|
||||
exit(get_rv());
|
||||
}
|
||||
|
||||
if (!ok)
|
||||
{
|
||||
failure ("its borken");
|
||||
@ -51,10 +58,8 @@ run_test (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 ();
|
||||
|
||||
success ("periods aren't realy tested yet");
|
||||
@ -66,6 +71,6 @@ main_helper (int argc, char **argv)
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
gh_enter (argc, argv, main_helper);
|
||||
scm_boot_guile(argc, argv, main_helper, NULL);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user