Skip to content

Commit 2007327

Browse files
aspiersgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 59a7714 commit 2007327

File tree

4 files changed

+10
-16
lines changed

4 files changed

+10
-16
lines changed

t/README

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,11 @@ use these, and "test_set_prereq" for how to define your own.
613613
The process retains the same pid across exec(2). See fb9a2bea for
614614
details.
615615

616+
- PIPE
617+
618+
The filesystem we're on supports creation of FIFOs (named pipes)
619+
via mkfifo(1).
620+
616621
- SYMLINKS
617622

618623
The filesystem we're on supports symbolic links. E.g. a FAT

t/t9010-svn-fe.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,6 @@ text_no_props () {
5454

5555
>empty
5656

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-
6557
test_expect_success PIPE 'empty dump' '
6658
reinit_git &&
6759
echo "SVN-fs-dump-format-version: 2" >input &&

t/t9300-fast-import.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,6 @@ echo "$@"'
4949

5050
>empty
5151

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-
6052
###
6153
### series A
6254
###

t/test-lib.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,11 @@ test_i18ngrep () {
727727
fi
728728
}
729729

730+
test_lazy_prereq PIPE '
731+
# test whether the filesystem supports FIFOs
732+
rm -f testfifo && mkfifo testfifo
733+
'
734+
730735
test_lazy_prereq SYMLINKS '
731736
# test whether the filesystem supports symbolic links
732737
ln -s x y && test -h y

0 commit comments

Comments
 (0)