summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsayjones.plus.com>2017-09-17 23:56:00 +0100
committerJunio C Hamano <gitster@pobox.com>2017-09-19 12:29:50 +0900
commit7b7bea23ac28cfaed820adc7659f8f0ea44b5724 (patch)
treeb1a6a4bd4d637a64fddd8f35066e06c11e5d503c
parent21dac1deee58df80f7b2cd17d661864c8db5d28a (diff)
downloadgit-7b7bea23ac28cfaed820adc7659f8f0ea44b5724.tar.gz
test-lib: use more compact expression in PIPE prerequisite
Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com> Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--t/test-lib.sh10
1 files changed, 2 insertions, 8 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 8a91fb10a9..c730c0bc13 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -1062,14 +1062,8 @@ 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
+ test_have_prereq !MINGW,!CYGWIN &&
+ rm -f testfifo && mkfifo testfifo
'
test_lazy_prereq SYMLINKS '