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:
parent
da88e60241
commit
a18e85cad1
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user