test-lib determines whether a file-system supports FIFOs and needs to do special casing for CYGWIN and MINGW. This separates those system specific settings from those at more central place. Set mkfifo() to false in the central system specific place so that the same test works everywhere. Signed-off-by: Michael J Gruber <git@xxxxxxxxx> --- t/test-lib.sh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/t/test-lib.sh b/t/test-lib.sh index 5fbd8d4a90..b8a0b05102 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -994,6 +994,10 @@ case $uname_s in pwd () { builtin pwd -W } + # no FIFOs + mkfifo () { + false + } # no POSIX permissions # backslashes in pathspec are converted to '/' # exec does not inherit the PID @@ -1004,6 +1008,10 @@ case $uname_s in GIT_TEST_CMP=mingw_test_cmp ;; *CYGWIN*) + # no FIFOs + mkfifo () { + false + } test_set_prereq POSIXPERM test_set_prereq EXECKEEPSPID test_set_prereq CYGWIN @@ -1062,14 +1070,7 @@ test_i18ngrep () { test_lazy_prereq PIPE ' # test whether the filesystem supports FIFOs - case $(uname -s) in - CYGWIN*|MINGW*) - false - ;; - *) - rm -f testfifo && mkfifo testfifo - ;; - esac + rm -f testfifo && mkfifo testfifo ' test_lazy_prereq SYMLINKS ' -- 2.14.1.712.gda4591c8a2