gnucash unstable: Improve gnc_data_home verification and creation

Geert Janssens gjanssens at code.gnucash.org
Fri Feb 2 06:18:58 EST 2018


Updated	 via  https://github.com/Gnucash/gnucash/commit/0d4f6e05 (commit)
	from  https://github.com/Gnucash/gnucash/commit/0f5bb351 (commit)



commit 0d4f6e054d0b2cf66cd34aa4feb737ddeae66f85
Author: Geert Janssens <geert at kobaltwit.be>
Date:   Fri Feb 2 10:24:04 2018 +0100

    Improve gnc_data_home verification and creation
    
    - Don't attempt to create a subdirectory of a non-existing home directory (use tmpdir as base directory in that case)
    - Make sure all tests run in an environment with GNC_BUILDDIR and GNC_UNINSTALLED set. Otherwise
      the one-shot old .gnucash to new GNC_DATA_HOME migration may already have run at build time,
      preventing us from informing the user a run time.
    - Re-enable the userdata-dir with invalid home test (linux only).



Summary of changes:
 common/cmake_modules/GncAddTest.cmake              |  6 +-
 libgnucash/core-utils/gnc-filepath-utils.cpp       | 91 ++++++++++++++++------
 libgnucash/core-utils/test/CMakeLists.txt          |  6 +-
 .../test/test-userdata-dir-invalid-home.c          |  4 +-
 libgnucash/core-utils/test/test-userdata-dir.c     |  5 +-
 5 files changed, 79 insertions(+), 33 deletions(-)



More information about the gnucash-patches mailing list