bin/test: Sync with FreeBSD
authorPeter Avalos <pavalos@dragonflybsd.org>
Sun, 13 Feb 2011 06:52:35 +0000 (20:52 -1000)
committerPeter Avalos <pavalos@dragonflybsd.org>
Sun, 13 Feb 2011 07:06:05 +0000 (21:06 -1000)
commitb3967821f8b89d00e3f7b6c54c1003976d3202bf
tree9f189ae2d786396c2307045dd994b654399b9d98
parentf59607061ed7edac298803ac1516e2a6dd165cc8
bin/test: Sync with FreeBSD

-Help /bin/sh pass a few more regression tests.
-Convert to use st_mtim instead of st_mtimespec.
-Fix various cases with 3 or 4 parameters in test(1) to be POSIX
compliant.
-Use intmax_t as a quad replacement instead of long long.
-__printflike() should really be __printf0like().
-Localize (LC_CTYPE).
-Cleanup whitespace.
-Simplify markup in man page.
-Describe how test(1) will evaluate its expressions for a symlink.
-Document that both sides of -a or -o are always evaluated.

Obtained-from: FreeBSD
bin/test/test.1
bin/test/test.c