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>
This commit is contained in:
parent
59a7714c89
commit
200732744a
5
t/README
5
t/README
@ -613,6 +613,11 @@ use these, and "test_set_prereq" for how to define your own.
|
|||||||
The process retains the same pid across exec(2). See fb9a2bea for
|
The process retains the same pid across exec(2). See fb9a2bea for
|
||||||
details.
|
details.
|
||||||
|
|
||||||
|
- PIPE
|
||||||
|
|
||||||
|
The filesystem we're on supports creation of FIFOs (named pipes)
|
||||||
|
via mkfifo(1).
|
||||||
|
|
||||||
- SYMLINKS
|
- SYMLINKS
|
||||||
|
|
||||||
The filesystem we're on supports symbolic links. E.g. a FAT
|
The filesystem we're on supports symbolic links. E.g. a FAT
|
||||||
|
@ -54,14 +54,6 @@ text_no_props () {
|
|||||||
|
|
||||||
>empty
|
>empty
|
||||||
|
|
||||||
test_expect_success 'setup: have pipes?' '
|
|
||||||
rm -f frob &&
|
|
||||||
if mkfifo frob
|
|
||||||
then
|
|
||||||
test_set_prereq PIPE
|
|
||||||
fi
|
|
||||||
'
|
|
||||||
|
|
||||||
test_expect_success PIPE 'empty dump' '
|
test_expect_success PIPE 'empty dump' '
|
||||||
reinit_git &&
|
reinit_git &&
|
||||||
echo "SVN-fs-dump-format-version: 2" >input &&
|
echo "SVN-fs-dump-format-version: 2" >input &&
|
||||||
|
@ -49,14 +49,6 @@ echo "$@"'
|
|||||||
|
|
||||||
>empty
|
>empty
|
||||||
|
|
||||||
test_expect_success 'setup: have pipes?' '
|
|
||||||
rm -f frob &&
|
|
||||||
if mkfifo frob
|
|
||||||
then
|
|
||||||
test_set_prereq PIPE
|
|
||||||
fi
|
|
||||||
'
|
|
||||||
|
|
||||||
###
|
###
|
||||||
### series A
|
### series A
|
||||||
###
|
###
|
||||||
|
@ -727,6 +727,11 @@ test_i18ngrep () {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
test_lazy_prereq PIPE '
|
||||||
|
# test whether the filesystem supports FIFOs
|
||||||
|
rm -f testfifo && mkfifo testfifo
|
||||||
|
'
|
||||||
|
|
||||||
test_lazy_prereq SYMLINKS '
|
test_lazy_prereq SYMLINKS '
|
||||||
# test whether the filesystem supports symbolic links
|
# test whether the filesystem supports symbolic links
|
||||||
ln -s x y && test -h y
|
ln -s x y && test -h y
|
||||||
|
Loading…
Reference in New Issue
Block a user