projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e81e476
)
.
author
Jim Meyering
<jim@meyering.net>
Sun, 31 Aug 1997 16:17:56 +0000
(16:17 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sun, 31 Aug 1997 16:17:56 +0000
(16:17 +0000)
tests/rm/f-1
[new file with mode: 0755]
patch
|
blob
diff --git a/tests/rm/f-1
b/tests/rm/f-1
new file mode 100755
(executable)
index 0000000..
495bca8
--- /dev/null
+++ b/
tests/rm/f-1
@@ -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