From 06ba9d03e34ffb5fe3ca71343ceef925a447771b Mon Sep 17 00:00:00 2001 From: Jeff Hostetler Date: Tue, 11 Sep 2018 13:06:01 -0700 Subject: t0051: test GIT_TRACE to a windows named pipe Create a test-tool helper to create the server side of a windows named pipe, wait for a client connection, and copy data written to the pipe to stdout. Create t0051 test to route GIT_TRACE output of a command to a named pipe using the above test-tool helper. Signed-off-by: Jeff Hostetler Signed-off-by: Junio C Hamano --- t/helper/test-tool.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 't/helper/test-tool.c') diff --git a/t/helper/test-tool.c b/t/helper/test-tool.c index 805a45de9c..7a9764cd5c 100644 --- a/t/helper/test-tool.c +++ b/t/helper/test-tool.c @@ -41,6 +41,9 @@ static struct test_cmd cmds[] = { { "subprocess", cmd__subprocess }, { "urlmatch-normalization", cmd__urlmatch_normalization }, { "wildmatch", cmd__wildmatch }, +#ifdef GIT_WINDOWS_NATIVE + { "windows-named-pipe", cmd__windows_named_pipe }, +#endif { "write-cache", cmd__write_cache }, }; -- cgit v1.2.3