diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 1 | ||||
-rwxr-xr-x | tests/misc/help-version | 1 | ||||
-rwxr-xr-x | tests/misc/invalid-opt | 1 | ||||
-rwxr-xr-x | tests/misc/su-fail | 30 |
4 files changed, 0 insertions, 33 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 0bafc5fc4..d8bc93020 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -280,7 +280,6 @@ TESTS = \ misc/stty-invalid \ misc/stty-pairs \ misc/stty-row-col \ - misc/su-fail \ misc/sum \ misc/sum-sysv \ misc/tac \ diff --git a/tests/misc/help-version b/tests/misc/help-version index 7416062fa..e19f5b1c0 100755 --- a/tests/misc/help-version +++ b/tests/misc/help-version @@ -208,7 +208,6 @@ nohup_setup () { args=--version; } printf_setup () { args=foo; } seq_setup () { args=10; } sleep_setup () { args=0; } -su_setup () { args=--version; } stdbuf_setup () { args="-oL true"; } timeout_setup () { args=--version; } diff --git a/tests/misc/invalid-opt b/tests/misc/invalid-opt index 8eae3c275..8f7024c6f 100755 --- a/tests/misc/invalid-opt +++ b/tests/misc/invalid-opt @@ -36,7 +36,6 @@ my %exit_status = nohup => 125, sort => 2, stdbuf => 125, - su => 125, test => 0, timeout => 125, true => 0, diff --git a/tests/misc/su-fail b/tests/misc/su-fail deleted file mode 100755 index c2e0475d2..000000000 --- a/tests/misc/su-fail +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh -# Test su failure cases - -# Copyright (C) 2009-2012 Free Software Foundation, Inc. - -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. - -. "${srcdir=.}/init.sh"; path_prepend_ ../src -print_ver_ su - -require_built_ su - -# Very little that we can test without a root password -su --- / true # unknown option -test $? = 125 || fail=1 -su no_such_user -test $? = 125 || fail=1 - -Exit $fail |