mirror of
https://github.com/git/git.git
synced 2024-12-19 14:54:07 +08:00
0a2bfccb9c
Have this file added in06ba9d03e3
(t0051: test GIT_TRACE to a windows named pipe, 2018-09-11) use the same "skip_all" pattern as an existing Windows-only test added in0e218f91c2
(mingw: unset PERL5LIB by default, 2018-10-30) uses. This way TAP consumers like "prove" will show a nice summary when the test is skipped. Instead of: $ prove t0051-windows-named-pipe.sh [...] t0051-windows-named-pipe.sh .. ok [...] We will prominently show a "skipped" notice: $ prove t0051-windows-named-pipe.sh [...] t0051-windows-named-pipe.sh ... skipped: skipping Windows-specific tests [...] This is because we are now making use of the right TAP-y way to communicate this to the consumer. I.e. skipping the whole test file, v.s. skipping individual tests (in this case there's only one test). Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
23 lines
462 B
Bash
Executable File
23 lines
462 B
Bash
Executable File
#!/bin/sh
|
|
|
|
test_description='Windows named pipes'
|
|
|
|
. ./test-lib.sh
|
|
if ! test_have_prereq MINGW
|
|
then
|
|
skip_all='skipping Windows-specific tests'
|
|
test_done
|
|
fi
|
|
|
|
test_expect_success 'o_append write to named pipe' '
|
|
GIT_TRACE="$(pwd)/expect" git status >/dev/null 2>&1 &&
|
|
{ test-tool windows-named-pipe t0051 >actual 2>&1 & } &&
|
|
pid=$! &&
|
|
sleep 1 &&
|
|
GIT_TRACE=//./pipe/t0051 git status >/dev/null 2>warning &&
|
|
wait $pid &&
|
|
test_cmp expect actual
|
|
'
|
|
|
|
test_done
|