coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[coreutils] [PATCH] tests: avoid new false-positive failure on at least


From: Jim Meyering
Subject: [coreutils] [PATCH] tests: avoid new false-positive failure on at least FreeBSD 8.1
Date: Tue, 21 Dec 2010 09:33:02 +0100

FYI, without this, the new part of the mv/trailing-slash test
would fail on FreeBSD 8.1:

>From 7ca55ef3d1ac512aaa99871adcdd8f21eb5af775 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Mon, 20 Dec 2010 14:27:08 +0100
Subject: [PATCH] tests: avoid new false-positive failure on at least FreeBSD 8.1

* tests/mv/trailing-slash: Accommodate different diagnostic
on FreeBSD 8.1.
---
 tests/mv/trailing-slash |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/tests/mv/trailing-slash b/tests/mv/trailing-slash
index 906174a..78b1042 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
--
1.7.3.3



reply via email to

[Prev in Thread] Current Thread [Next in Thread]