Skip to content

Commit f6dc09d

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 de9f3ba commit f6dc09d

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)