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:
parent
48ee11722d
commit
39d478f5ba
6 changed files with 15 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue