summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/cp/link-deref.sh2
-rwxr-xr-xtests/install/basic-1.sh5
2 files changed, 6 insertions, 1 deletions
diff --git a/tests/cp/link-deref.sh b/tests/cp/link-deref.sh
index 51b228cbb..f5b7160a6 100755
--- a/tests/cp/link-deref.sh
+++ b/tests/cp/link-deref.sh
@@ -92,7 +92,7 @@ for src in dirlink filelink danglink; do
exp_result=1
exp_inode=
exp_ftype=
- exp_error="cp: omitting directory 'dirlink'"
+ exp_error="cp: -r not specified; omitting directory 'dirlink'"
elif [ "$src" = 'dirlink' ]; then
# cp --link -R 'dirlink' should create a new directory.
exp_result=0
diff --git a/tests/install/basic-1.sh b/tests/install/basic-1.sh
index 23a2d581f..1a7147c1f 100755
--- a/tests/install/basic-1.sh
+++ b/tests/install/basic-1.sh
@@ -143,4 +143,9 @@ compare - out <<\EOF || fail=1
'file' -> 'sub4/dir_exists/file'
EOF
+# Ensure omitted directories are diagnosed
+returns_ 1 ginstall . . 2>err || fail=1
+printf '%s\n' "ginstall: omitting directory '.'" >exp || framework_failure_
+compare exp err || fail=1
+
Exit $fail