gnucash stable: Fix invalid home test

Geert Janssens gjanssens at code.gnucash.org
Thu Oct 31 07:44:11 EDT 2024


Updated	 via  https://github.com/Gnucash/gnucash/commit/831ce065 (commit)
	from  https://github.com/Gnucash/gnucash/commit/cf73829e (commit)



commit 831ce065bb61f16b06aac812b1ac0fa9a5d1bef2
Author: Geert Janssens <geert at kobaltwit.be>
Date:   Thu Oct 31 12:42:19 2024 +0100

    Fix invalid home test
    
    If a user has set environment variable GNC_DATA_HOME
    to a valid directory (containing real gnucash metadata)
    the test would fail. It expects to follow the code path
    to set up a gnucash data home directory in the temporary
    directory, but the directory pointed to in GNC_DATA_HOME
    is used instead.
    Fix this by also setting environment variable GNC_DATA_HOME
    to something invalid during the test.



Summary of changes:
 libgnucash/core-utils/test/test-userdata-dir-invalid-home.c | 3 +++
 1 file changed, 3 insertions(+)



More information about the gnucash-patches mailing list