Skip to content

Commit b6bd8b7

Browse files
committed
t0001 (mingw): do not expect 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 relax the test a little. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 096c2f5 commit b6bd8b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

t/t0001-init.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,8 @@ test_expect_success MINGW 'redirect std handles' '
462462
GIT_REDIRECT_STDERR="2>&1" \
463463
git rev-parse --git-dir --verify refs/invalid &&
464464
printf ".git\nfatal: Needed a single revision\n" >expect &&
465-
test_cmp expect output.txt
465+
sort <output.txt >output.sorted &&
466+
test_cmp expect output.sorted
466467
'
467468

468469
test_done

0 commit comments

Comments
 (0)