diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2022-04-06 06:28:15 +0200 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2022-04-06 06:28:15 +0200 |
commit | b47a23f5fac551727d24f65765e21485ed2bb02c (patch) | |
tree | f0343ddaa0e500a8835366c68e783216658cc809 /common | |
parent | w32: Fix for make check. (diff) | |
download | gnupg2-b47a23f5fac551727d24f65765e21485ed2bb02c.tar.xz gnupg2-b47a23f5fac551727d24f65765e21485ed2bb02c.zip |
w32: Exclude tests with HOME.
* common/t-session-env.c [HAVE_W32_SYSTEM] (test_all): HOME is not
defined, so, exclude the tests.
--
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/t-session-env.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/t-session-env.c b/common/t-session-env.c index e2b942c6a..a65cb153f 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"); |