projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
960fc61
)
tests: avoid new false-positive failure on at least FreeBSD 8.1
author
Jim Meyering
<meyering@redhat.com>
Mon, 20 Dec 2010 13:27:08 +0000
(14:27 +0100)
committer
Jim 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
patch
|
blob
|
history
diff --git
a/tests/mv/trailing-slash
b/tests/mv/trailing-slash
index
906174a
..
78b1042
100755
(executable)
--- 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