summaryrefslogtreecommitdiff
path: root/tests/misc/su-fail
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/su-fail')
-rwxr-xr-xtests/misc/su-fail2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/misc/su-fail b/tests/misc/su-fail
index bba7d1f01..f00edc95b 100755
--- a/tests/misc/su-fail
+++ b/tests/misc/su-fail
@@ -24,6 +24,8 @@ if test "$VERBOSE" = yes; then
su --version
fi
+fail=0
+
# Very little that we can test without a root password
su --- / true # unknown option
test $? = 125 || fail=1