[PATCH] tests: depcomp2: avoid spurious failure on OS/X

Jim Meyering <[email protected]>
Newsgroups gmane.comp.sysutils.automake.patches
Message-ID <CA+8g5KGw0CAnQZ8QQXkjntjX7PO_Q9YZZbALKD4hAoZHCGWRdg@mail.gmail.com>
I expect to push this trivial patch to master by Monday.
Holler if you'd rather it go elsewhere.
k.txt (text/plain, 910 B)
From 5ac6a241b117f372808b9d2a6ac78ca9af42dfaf Mon Sep 17 00:00:00 2001
From: Jim Meyering <[email protected]>
Date: Thu, 20 Mar 2014 13:44:48 -0700
Subject: [PATCH] tests: depcomp2: avoid spurious failure on OS/X

* t/depcomp2.sh: Relax stderr-filtering regexp so that it also
works when the file name in the diagnostic is quoted, e.g.,
rm: cannot remove 'conftest.dSYM': Is a directory
---
 t/depcomp2.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/depcomp2.sh b/t/depcomp2.sh
index 3eba12d..3baaebf 100644
--- a/t/depcomp2.sh
+++ b/t/depcomp2.sh
@@ -47,7 +47,7 @@ $AUTOCONF
 cat stderr >&2
 # Ignore warning messages sometimes seen on Mac OS X; they are
 # not automake's fault anyway, but either autoconf's or Mac's.
-sed '/rm:.* conftest\.dSYM/d' stderr >stderr2
+sed '/rm:.*conftest\.dSYM/d' stderr >stderr2
 test -s stderr2 && { cat stderr2; exit 1; }

 :
-- 
1.9.2.459.g68773ac
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.