mirror of
https://github.com/coreutils/coreutils.git
synced 2024-11-27 12:04:25 +08:00
.
This commit is contained in:
parent
e81e47663f
commit
377f2fbc55
26
tests/rm/f-1
Executable file
26
tests/rm/f-1
Executable file
@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
|
||||
: ${RM=rm}
|
||||
test=f-1
|
||||
|
||||
if test "$VERBOSE" = yes; then
|
||||
set -x
|
||||
$RM --version
|
||||
fi
|
||||
|
||||
: ${RM_TMPDIR=.}
|
||||
tmp=$RM_TMPDIR/t-rm.$$
|
||||
|
||||
test_failure=0
|
||||
mkdir $tmp || test_failure=1
|
||||
|
||||
if test $test_failure = 1; then
|
||||
echo 'failure in testing framework'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
fail=0
|
||||
$RM -f $tmp/no-such-file || fail=1
|
||||
rm -rf $tmp
|
||||
|
||||
exit $fail
|
Loading…
Reference in New Issue
Block a user