Skip to content

Commit

Permalink
Use Windows format for pwd in test_common on mingw
Browse files Browse the repository at this point in the history
  • Loading branch information
mjwoods committed Sep 5, 2021
1 parent 34773bf commit 86b7fa3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test_common.in
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ 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
alias pwd='pwd -W'
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 86b7fa3

Please sign in to comment.