Make the output/errput test more robust by sorting output

This commit is contained in:
ridiculousfish 2019-04-03 16:47:05 -07:00
parent 318fe3c046
commit e2ed6baf43
2 changed files with 2 additions and 2 deletions

View file

@ -110,7 +110,7 @@ echo Test 5 $sta
logmsg Verify that we can turn stderr into stdout and then pipe it
# Note that the order here has historically been unspecified - 'errput' could conceivably appear before 'output'.
begin ; echo output ; echo errput 1>&2 ; end 2>&1 | tee ../test/temp/tee_test.txt ; cat ../test/temp/tee_test.txt
begin ; echo output ; echo errput 1>&2 ; end 2>&1 | sort | tee ../test/temp/tee_test.txt ; cat ../test/temp/tee_test.txt
logmsg "Test that trailing ^ doesn't trigger redirection, see #1873"
echo caret_no_redirect 12345^

View file

@ -44,10 +44,10 @@ Test 5 pass
####################
# Verify that we can turn stderr into stdout and then pipe it
output
errput
output
errput
output
####################
# Test that trailing ^ doesn't trigger redirection, see #1873