diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2015-03-31 12:11:53 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2015-03-31 12:11:53 +0000 |
commit | 173b2a370f5eb525a92610f9a31a5b410ba68fc1 (patch) | |
tree | 68081f48efd182a8289e8d02c617935d34be3e44 /regress | |
parent | 239c23f5b43a19ad26e7298fe60d8fc85cfecc63 (diff) |
POSIX says "sort -c" produces output on disorder but "sort -C" does not.
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.bin/sort/stests | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/regress/usr.bin/sort/stests b/regress/usr.bin/sort/stests index 5483934905b..161f6f06a01 100644 --- a/regress/usr.bin/sort/stests +++ b/regress/usr.bin/sort/stests @@ -1,5 +1,5 @@ #!/bin/sh - -# $OpenBSD: stests,v 1.8 2015/03/30 19:49:09 millert Exp $ +# $OpenBSD: stests,v 1.9 2015/03/31 12:11:52 millert Exp $ # from: @(#)stests 8.1 (Berkeley) 6/6/93 #Latest version. My sort passes all tests because I wrote it. @@ -114,7 +114,7 @@ xsort B || echo '"cksum"' is probably unsuitable - see comments $o $SORTPROG +0 in -o in || echo ${TEST}c failed #--------------------------------------------------------------- -TEST=02; echo $TEST # output from -c +TEST=02; echo $TEST # output from -c, none from -C cat <<! >in x y @@ -122,8 +122,10 @@ y $SORTPROG -cr in >out 2>xx && echo ${TEST}A failed test -s out && echo ${TEST}B failed -test -s xx && echo option -c is noisy "(probably legal)" -test -s xx || echo option -c is quiet "(legal, not classical)" +test -s xx || echo ${TEST}C failed +$SORTPROG -Cr in >out 2>xx && echo ${TEST}D failed +test -s out && echo ${TEST}E failed +test -s xx && echo ${TEST}F failed #--------------------------------------------------------------- TEST=03; echo $TEST # -n |