Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 3259ff9

Browse files
committed
test: Override 'check_symlink' to work with incomplete mingw
Signed-off-by: Michael Geddes <[email protected]>
1 parent 2fa9eca commit 3259ff9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

t/test-lib.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -867,6 +867,11 @@ case $(uname -s) in
867867
(cd "$1" ; pwd -P | sed 's+^/\([a-z]\)\/+\1:/+')
868868
}
869869

870+
check_symlink() {
871+
check_symlink_LINK="$(cmd /c "dir $1" | grep \<SYMLINK\> | sed 's/^.*\[\([^]]*\)\].*$/\1/')"
872+
test "$check_symlink_LINK" = "$2"
873+
}
874+
870875
# no POSIX permissions
871876
# backslashes in pathspec are converted to '/'
872877
# exec does not inherit the PID

0 commit comments

Comments
 (0)