summaryrefslogtreecommitdiff
path: root/tests/mv/trailing-slash
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-12-20 14:27:08 +0100
committerJim Meyering <meyering@redhat.com>2010-12-21 09:30:55 +0100
commit7ca55ef3d1ac512aaa99871adcdd8f21eb5af775 (patch)
treec5ad34b110a65b1ee634bfeb1fd7f145084bd530 /tests/mv/trailing-slash
parent960fc616247dda92ac6f0b61ffaacb357484227b (diff)
downloadcoreutils-7ca55ef3d1ac512aaa99871adcdd8f21eb5af775.tar.xz
tests: avoid new false-positive failure on at least FreeBSD 8.1
* tests/mv/trailing-slash: Accommodate different diagnostic on FreeBSD 8.1.
Diffstat (limited to 'tests/mv/trailing-slash')
-rwxr-xr-xtests/mv/trailing-slash4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/mv/trailing-slash b/tests/mv/trailing-slash
index 906174afa..78b1042d0 100755
--- a/tests/mv/trailing-slash
+++ b/tests/mv/trailing-slash
@@ -56,6 +56,10 @@ printf '%s\n' \
> expected-err
touch b
cp b no-such/ 2> err && fail=1
+
+# Map "No such file..." diagnostic to the expected "Not a directory"
+sed 's/No such file or directory/Not a directory/' err > k && mv k err
+
compare err expected-err || fail=1
Exit $fail