]> rtime.felk.cvut.cz Git - git.git/commitdiff
t5503: GIT_DEBUG_SEND_PACK is not supported on MinGW
authorJohannes Sixt <j6t@kdbg.org>
Fri, 20 Mar 2009 21:03:33 +0000 (22:03 +0100)
committerJohannes Sixt <j6t@kdbg.org>
Sun, 22 Mar 2009 16:52:43 +0000 (17:52 +0100)
The test opens fd 3 and instructs git-upload-pack (via GIT_DEBUG_SEND_PACK)
to log information to that channel.

The way in which new processes are spawned by git on MinGW does not inherit
all file descriptors to the child processes, but only 0, 1, and 2.
The tests in t5503 require that file descriptor 3 is inherited from
git-fetch to git-upload-pack.

A complete implementation is non-trivial and not warranted just to satisfy
this test.  Note that the incompleteness applies only to the executables
that use compat/mingw.c; bash and perl (the other important executables
used by git) are complete, of course.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
t/t5503-tagfollow.sh

index 4074e23ffa2c7a93fdbd4a367e273118224b9038..e75ccbcaebbe8cf2ac0fdf5dfe474a9b9a3043ab 100755 (executable)
@@ -4,6 +4,13 @@ test_description='test automatic tag following'
 
 . ./test-lib.sh
 
+case $(uname -s) in
+*MINGW*)
+       say "GIT_DEBUG_SEND_PACK not supported - skipping tests"
+       test_done
+       exit
+esac
+
 # End state of the repository:
 #
 #         T - tag1          S - tag2