t: make PIPE a standard test prerequisite
The 'PIPE' test prerequisite was already defined identically by t9010 and t9300, therefore it makes sense to make it a predefined prerequisite. Signed-off-by: Adam Spiers <git@adamspiers.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Adam Spiers committed
Apr 11, 2013 at 03:07 UTC
200732744a32a378b636da4d840aeb410adfb2ad
4 files changed
+10
-16
t/README
+5
@@ -613,6 +613,11 @@ use these, and "test_set_prereq" for how to define your own.
613
The process retains the same pid across exec(2). See fb9a2bea for
614
details.
615
616
+ - PIPE
617
+
618
+ The filesystem we're on supports creation of FIFOs (named pipes)
619
+ via mkfifo(1).
620
+
621
- SYMLINKS
622
623
The filesystem we're on supports symbolic links. E.g. a FAT
t/t9010-svn-fe.sh
-8
@@ -54,14 +54,6 @@ text_no_props () {
54
55
>empty
56
57
-test_expect_success 'setup: have pipes?' '
58
- rm -f frob &&
59
- if mkfifo frob
60
- then
61
- test_set_prereq PIPE
62
- fi
63
-'
64
-
57
test_expect_success PIPE 'empty dump' '
58
reinit_git &&
59
echo "SVN-fs-dump-format-version: 2" >input &&
t/t9300-fast-import.sh
-8
@@ -49,14 +49,6 @@ echo "$@"'
49
50
>empty
51
52
-test_expect_success 'setup: have pipes?' '
53
- rm -f frob &&
54
- if mkfifo frob
55
- then
56
- test_set_prereq PIPE
57
- fi
58
-'
59
-
52
###
53
### series A
54
###
t/test-lib.sh
+5
@@ -727,6 +727,11 @@ test_i18ngrep () {
727
fi
728
}
729
730
+test_lazy_prereq PIPE '
731
+ # test whether the filesystem supports FIFOs
732
+ rm -f testfifo && mkfifo testfifo
733
+'
734
+
735
test_lazy_prereq SYMLINKS '
736
# test whether the filesystem supports symbolic links
737
ln -s x y && test -h y