1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

w32: Fix for make check.

* common/Makefile.am (module_tests): Exclude t-exechelp and
t-exectool.
* common/t-stringhelp.c (mygetcwd): Convert '\' to '/'.
* tests/cms/Makefile.am: Add $(EXEEXT).
* tests/gpgme/Makefile.am: Likewise.
* tests/migrations/Makefile.am: Likewise.
* tests/openpgp/Makefile.am: Likewise.

--

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2022-04-06 11:28:00 +09:00
parent 48ee11722d
commit 39d478f5ba
6 changed files with 15 additions and 8 deletions

View file

@ -170,11 +170,10 @@ module_tests = t-stringhelp t-timestuff \
t-session-env t-openpgp-oid t-ssh-utils \
t-mapstrings t-zb32 t-mbox-util t-iobuf t-strlist \
t-name-value t-ccparray t-recsel t-w32-cmdline
if !HAVE_W32CE_SYSTEM
module_tests += t-exechelp t-exectool
endif
if HAVE_W32_SYSTEM
module_tests += t-w32-reg
else
module_tests += t-exechelp t-exectool
endif
if MAINTAINER_MODE

View file

@ -88,7 +88,15 @@ mygetcwd (void)
return buffer;
#else
if (getcwd (buffer, size) == buffer)
return buffer;
{
#ifdef HAVE_W32_SYSTEM
char *p;
for (p = buffer; *p; p++)
if (*p == '\\')
*p = '/';
#endif
return buffer;
}
xfree (buffer);
if (errno != ERANGE)
{