mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
tests: avoid new false-positive failure on at least FreeBSD 8.1
* tests/mv/trailing-slash: Accommodate different diagnostic on FreeBSD 8.1.
This commit is contained in:
1 parent
960fc61624
commit
7ca55ef3d1
1 file changed
+4
@@ -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
|
||||
Reference in new issue
Block a user