diff options
Diffstat (limited to 'tests/rm/i-1')
-rwxr-xr-x | tests/rm/i-1 | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/rm/i-1 b/tests/rm/i-1 index e452c2d29..df023a85c 100755 --- a/tests/rm/i-1 +++ b/tests/rm/i-1 @@ -16,8 +16,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -test=i-1 - . "${srcdir=.}/init.sh"; path_prepend_ ../src print_ver_ rm @@ -26,14 +24,14 @@ mkdir -p $t || framework_failure_ echo > $t/a || framework_failure_ test -f $t/a || framework_failure_ -echo y > $t/$test.Iy -echo n > $t/$test.In +echo y > $t/in-y +echo n > $t/in-n -rm -i $t/a < $t/$test.In > /dev/null 2>&1 || fail=1 +rm -i $t/a < $t/in-n > /dev/null 2>&1 || fail=1 # The file should not have been removed. test -f $t/a || fail=1 -rm -i $t/a < $t/$test.Iy > /dev/null 2>&1 || fail=1 +rm -i $t/a < $t/in-y > /dev/null 2>&1 || fail=1 # The file should have been removed this time. test -f $t/a && fail=1 |