diff options
author | 2015-03-31 12:11:52 +0000 | |
---|---|---|
committer | 2015-03-31 12:11:52 +0000 | |
commit | 60edffd878bf33bbab196e988ce3c47fd0d515c3 (patch) | |
tree | 6310524f6152c3b45ed7b9ecbf59a00c82f1684c | |
parent | let vlan(4) mtu be limited by the parents hardmtu, not current mtu. (diff) | |
download | wireguard-openbsd-60edffd878bf33bbab196e988ce3c47fd0d515c3.tar.xz wireguard-openbsd-60edffd878bf33bbab196e988ce3c47fd0d515c3.zip |
POSIX says "sort -c" produces output on disorder but "sort -C" does not.
-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 |