diff options
Diffstat (limited to 'tests/misc')
-rwxr-xr-x | tests/misc/su-fail | 2 | ||||
-rwxr-xr-x | tests/misc/truncate-owned-by-other | 1 |
2 files changed, 3 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 diff --git a/tests/misc/truncate-owned-by-other b/tests/misc/truncate-owned-by-other index c7bdf61c2..61cbe8b50 100755 --- a/tests/misc/truncate-owned-by-other +++ b/tests/misc/truncate-owned-by-other @@ -35,6 +35,7 @@ chmod g+w root-owned # Ensure that the current directory is searchable by $NON_ROOT_USERNAME. chmod g+x . +fail=0 setuidgid $NON_ROOT_USERNAME env PATH="$PATH" truncate -s0 root-owned || fail=1 Exit $fail |