summaryrefslogtreecommitdiff
path: root/tests/rm
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-08-31 22:15:57 +0000
committerJim Meyering <jim@meyering.net>1997-08-31 22:15:57 +0000
commit8a788f502e0254e1c797418b2e6f257bf645aeaf (patch)
tree5df8f0674cdff1f00753843157e2e36d9ab5c388 /tests/rm
parenta98be626430229e062511e19b9abc80b14e67fe0 (diff)
downloadcoreutils-8a788f502e0254e1c797418b2e6f257bf645aeaf.tar.xz
.
Diffstat (limited to 'tests/rm')
-rwxr-xr-xtests/rm/sunos-127
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/rm/sunos-1 b/tests/rm/sunos-1
new file mode 100755
index 000000000..98d8b79a1
--- /dev/null
+++ b/tests/rm/sunos-1
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+: ${RM=rm}
+test=sunos-1
+
+if test "$VERBOSE" = yes; then
+ set -x
+ $RM --version
+fi
+
+tmp=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
+cd $tmp
+$RM '' && fail=1
+cd ..
+rm -rf $tmp
+
+exit $fail