t0001 (mingw): do not expect a specific order of stdout/stderr
When redirecting stdout/stderr to the same file, we cannot guarantee that stdout will come first. In fact, in this test case, it seems that an MSVC build always prints stderr first. In any case, this test case does not want to verify the *order* but the *presence* of both outputs, so let's test exactly that. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Johannes Schindelin committed
Jun 19, 2019 at 14:05 UTC
fdda1ac62d7b2adba3d443ab8051a6accfe160df
1 file changed
+2
-2
t/t0001-init.sh
+2
-2
@@ -473,8 +473,8 @@ test_expect_success MINGW 'redirect std handles' '
473
GIT_REDIRECT_STDOUT=output.txt \
474
GIT_REDIRECT_STDERR="2>&1" \
475
git rev-parse --git-dir --verify refs/invalid &&
476
- printf ".git\nfatal: Needed a single revision\n" >expect &&
477
- test_cmp expect output.txt
476
+ grep "^\\.git\$" output.txt &&
477
+ grep "Needed a single revision" output.txt
478
'
479
480
test_done