Skip to content

Commit

Permalink
Use Windows paths in tests of mingw executables
Browse files Browse the repository at this point in the history
  • Loading branch information
mjwoods committed Sep 4, 2021
1 parent 09e0e04 commit 2d4b7e2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test_common.in
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,16 @@ set -e
# Allow global set -x mechanism for debugging.
if test "x$SETX" = x1 ; then set -x ; fi

# On MINGW, bash and other POSIX utilities use a mounted root directory,
# but executables compiled for Windows do not recognise the mount point.
# Here we ensure that Windows paths are used in tests of Windows executables.
system=`uname`
if test "x${system##MINGW*}" = x; then
PWDCMD='pwd -W'
else
PWDCMD='pwd'
fi

# We assume that TOPSRCDIR and TOPBUILDDIR are defined
# At the top of this shell script
top_srcdir="$TOPSRCDIR"
Expand Down

0 comments on commit 2d4b7e2

Please sign in to comment.