Skip to content

Commit 7b7bea2

Browse files
ramsay-jonesgitster
authored andcommitted
test-lib: use more compact expression in PIPE prerequisite
Signed-off-by: Ramsay Jones <[email protected]> Reviewed-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 21dac1d commit 7b7bea2

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

t/test-lib.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,14 +1062,8 @@ test_i18ngrep () {
10621062

10631063
test_lazy_prereq PIPE '
10641064
# test whether the filesystem supports FIFOs
1065-
case $(uname -s) in
1066-
CYGWIN*|MINGW*)
1067-
false
1068-
;;
1069-
*)
1070-
rm -f testfifo && mkfifo testfifo
1071-
;;
1072-
esac
1065+
test_have_prereq !MINGW,!CYGWIN &&
1066+
rm -f testfifo && mkfifo testfifo
10731067
'
10741068

10751069
test_lazy_prereq SYMLINKS '

0 commit comments

Comments
 (0)