libtest: Use exit code 77 for root-requiring tests run as non-root

This is the "standard" introduced by Automake and used by g-d-t-r.
This commit is contained in:
Colin Walters 2015-09-08 12:20:28 -04:00
parent da88e60241
commit a18e85cad1

View File

@ -304,6 +304,6 @@ check_root_test ()
if test "$(id -u)" != "0"; then if test "$(id -u)" != "0"; then
echo 1>&2 "$0 can be run only as root" echo 1>&2 "$0 can be run only as root"
echo "1..0" echo "1..0"
exit 0 exit 77
fi fi
} }