summaryrefslogtreecommitdiffstats
path: root/common/t-session-env.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 21:21:05 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 21:21:05 +0000
commite7fd617327ed9d30f093a78a016511ab5c984ba4 (patch)
treebb534b4fd912969c90022ad00726253be891ad8a /common/t-session-env.c
parentReleasing progress-linux version 2.2.40-3~progress7.99u1. (diff)
downloadgnupg2-e7fd617327ed9d30f093a78a016511ab5c984ba4.tar.xz
gnupg2-e7fd617327ed9d30f093a78a016511ab5c984ba4.zip
Merging upstream version 2.2.43.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--common/t-session-env.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/t-session-env.c b/common/t-session-env.c
index e2b942c..a65cb15 100644
--- a/common/t-session-env.c
+++ b/common/t-session-env.c
@@ -154,6 +154,7 @@ test_all (void)
listall (se);
+#ifndef HAVE_W32_SYSTEM
/* Retrieve a default one. */
s = session_env_getenv_or_default (se, "HOME", NULL);
if (!s)
@@ -161,14 +162,17 @@ test_all (void)
fprintf (stderr, "failed to get default of HOME\n");
exit (1);
}
+#endif
s = session_env_getenv (se, "HOME");
if (s)
fail(0); /* This is a default value, thus we should not see it. */
+#ifndef HAVE_W32_SYSTEM
s = session_env_getenv_or_default (se, "HOME", NULL);
if (!s)
fail(0); /* But here we should see it. */
+#endif
/* Add a few more. */
err = session_env_putenv (se, "X1=A value");