Skip to content

Commit d90bf0e

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 48e9bc6 commit d90bf0e

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
@@ -474,7 +474,8 @@ test_expect_success MINGW 'redirect std handles' '
474474
GIT_REDIRECT_STDERR="2>&1" \
475475
git rev-parse --git-dir --verify refs/invalid &&
476476
printf ".git\nfatal: Needed a single revision\n" >expect &&
477-
test_cmp expect output.txt
477+
sort <output.txt >output.sorted &&
478+
test_cmp expect output.sorted
478479
'
479480

480481
test_done

0 commit comments

Comments
 (0)