summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/misc/Makefile.am1
-rwxr-xr-xtests/misc/df17
2 files changed, 18 insertions, 0 deletions
diff --git a/tests/misc/Makefile.am b/tests/misc/Makefile.am
index 60d5745da..5c01b43b4 100644
--- a/tests/misc/Makefile.am
+++ b/tests/misc/Makefile.am
@@ -27,6 +27,7 @@ TESTS = \
csplit \
date \
date-sec \
+ df \
dirname \
expand \
false-status \
diff --git a/tests/misc/df b/tests/misc/df
new file mode 100755
index 000000000..b1efe61ab
--- /dev/null
+++ b/tests/misc/df
@@ -0,0 +1,17 @@
+#!/bin/sh
+# Ensure that "df ." outputs a header.
+
+if test "$VERBOSE" = yes; then
+ set -x
+ df --version
+fi
+
+case `df .` in
+*'
+'*)
+ fail=0;;
+*)
+ fail=1;;
+esac
+
+(exit $fail); exit $fail