tests: avoid new false-positive failure on at least FreeBSD 8.1
authorJim Meyering <meyering@redhat.com>
Mon, 20 Dec 2010 13:27:08 +0000 (14:27 +0100)
committerJim Meyering <meyering@redhat.com>
Tue, 21 Dec 2010 08:30:55 +0000 (09:30 +0100)
* tests/mv/trailing-slash: Accommodate different diagnostic
on FreeBSD 8.1.

tests/mv/trailing-slash

index 906174a..78b1042 100755 (executable)
@@ -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