Difficulty with apps-utils

Rob Gowin robg at gowin.net
Tue Nov 7 21:52:52 EST 2017


Hi Aaron,

Since test-app-utils uses guile, you can't execute that test from the
build/bin directory without setting up the Guile environment. Look into
the Testing/Temporary/LastTest.log file to retreive the command
you need. For me, this command is

cmake "-E" "env" "GNC_BUILDDIR=$GNUCASH_BUILD" "GNC_UNINSTALLED=yes" \
  "GNC_BUILDDIR=$GNUCASH_BUILD" "GUILE_WARN_DEPRECATED=no" \
  "LD_LIBRARY_PATH=$GNUCASH_BUILD/lib:$GNUCASH_BUILD/lib/gnucash" \
  "GNC_MODULE_PATH=$GNUCASH_BUILD/lib:$GNUCASH_BUILD/lib/gnucash" \
  "GUILE=/usr/bin/guile"
"GUILE_LOAD_COMPILED_PATH=$GNUCASH_BUILD/lib/gnucash/scm/ccache/2.0" \

"GUILE_LOAD_PATH=$GNUCASH_SRC/libgnucash/app-utils/test/mod-foo:$GNUCASH_SRC/libgnucash/app-utils/test/mod-bar:$GNUCASH_SRC/libgnucash/app-utils/test/mod-baz"
\
  "$GNUCASH_BUILD/bin/test-app-utils"

where I have substituted $GNUCASH_BUILD and $GNUCASH_SRC for my
directory details.  But you can just cut-n-paste whatever command
is in LastTest.log to run the test.

When I clone and build your branch on Fedora 26 (gcc 7.1.1), I
get this message in my LastTest.log and when running the above
cmake command by hand:

Output:
----------------------------------------------------------
/app-utils/option-util/Option DB Load: **
ERROR:/home/robg/gnucash/libgnucash/app-utils/test/test-option-util.cpp:98:void
test_option_load(Fixture*, gconstpointer): assertion failed
(gnc_option_db_lookup_string_option (odb, "Business", "Company Name",
FALSE) == "Bogus Company"): ("" == "Bogus Company")
Child aborted

I also get a segfault in test-engine after
gnc-budget_set_account_period_value()

What do you see in your Testing/Temporary/LastTest.log?

Regards,

Rob


On Tue, Nov 7, 2017 at 7:49 AM, Aaron Laws <dartme18 at gmail.com> wrote:

> I have made several changes on my branch to avoid kvp parsing keys. The
> last change I made removes the functions that take char*, but the unit test
> suite does not pass. All tests pass except app-utils which fails with the
> strange error:
>
> (./test-app-utils:6860): gnc.module-WARNING **: Could not locate module
> gnucash/app-utils interface v.0
>
> You can see my code at
>
> https://github.com/limitedatonement/gnucash/tree/fix_bayes
>
> Can anyone reproduce the problem? Any suggestions?
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>


More information about the gnucash-devel mailing list