diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-02-04 15:56:08 +0000 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2021-02-05 12:05:00 +0100 |
commit | a5453daa11b02aff2b44907b2c87b3c4b56e8bd5 (patch) | |
tree | a00bda4dd095cf153c67c188e0be98a46cc93bed | |
parent | 9567639d6a649cffc9f1a965a11b5b202b241179 (diff) |
MOZILLA_CERTIFICATE_FOLDER needs to be non-empty to disable autodetect...
of the users profile. make CppunitTest_desktop_lib fails for me because
I have a real profile which is autodetected but which gives a
SEC_ERROR_TOKEN_NOT_LOGGED_IN failure if used. The intent here is
clearly to avoid doing an autodetect.
before
commit 02399a217b94660efc874e589fc4140bbbabd884
Date: Mon Dec 31 12:22:39 2018 +0100
for tests MOZILLA_CERTIFICATE_FOLDER should be set to empty not 0
"0" was explicitly used
Change-Id: I0110d8e2c4c378dde75a1c8da3757bfa29f6c1b0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110367
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
-rw-r--r-- | solenv/gbuild/gbuild.mk | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/solenv/gbuild/gbuild.mk b/solenv/gbuild/gbuild.mk index 7c4df81bf257..86ed3d32a376 100644 --- a/solenv/gbuild/gbuild.mk +++ b/solenv/gbuild/gbuild.mk @@ -261,7 +261,18 @@ gb_GLOBALDEFS := $(sort $(gb_GLOBALDEFS)) # * Cap the number of threads unittests use: gb_TEST_ENV_VARS := MAX_CONCURRENCY=4 # * Disable searching for certificates by default: -gb_TEST_ENV_VARS += MOZILLA_CERTIFICATE_FOLDER= +# +# see xmlsecurity/source/xmlsec/nss/nssinitializer.cxx for use +# +# a) If MOZILLA_CERTIFICATE_FOLDER is empty then LibreOffice autodetects +# the user's mozilla-decended application profile. To disable that we +# use a non-empty string here. +# +# b) Using dbm: appears to nss as equivalent to an empty path so the +# initial NSS_InitReadWrite will fail. In response to that failure +# LibreOffice will create a temp fallback cert database which is removed +# on process exit +gb_TEST_ENV_VARS += MOZILLA_CERTIFICATE_FOLDER=dbm: # Avoid hanging if the cups daemon requests a password: gb_TEST_ENV_VARS += SAL_DISABLE_SYNCHRONOUS_PRINTER_DETECTION=1 ifeq (,$(SAL_USE_VCLPLUGIN)) |