autoconf-patches
[Top][All Lists]
Advanced

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

FYI: 75-gary-canonicalize-strerror-test.patch


From: Gary V. Vaughan
Subject: FYI: 75-gary-canonicalize-strerror-test.patch
Date: Fri, 10 Oct 2003 15:10:06 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20030925 Thunderbird/0.3

Applied to HEAD of GNU m4.

Bleh! This is all wrong since it relies on knowledge of the internals of AT_CHECK. But it will allow the `modules: importing' check to work until we figure out how to do it properly.
--
  ())_.  Gary V. Vaughan    gary@(lilith.warpmail.net|gnu.org)
  ( '/   Research Scientist http://www.oranda.demon.co.uk       ,_())____
  / )=   GNU Hacker         http://www.gnu.org/software/libtool  \'      `&
`(_~)_   Tech' Author       http://sources.redhat.com/autobook   =`---d__/
Index: ChangeLog
from  Gary V. Vaughan  <address@hidden>
        * tests/modules.at (modules: importing): Edit the generated stderr
        output to canonicalize strerror output, before a comparison.

2003-10-10  Gary V. Vaughan  <address@hidden>

Index: tests/modules.at
===================================================================
RCS file: /cvsroot/m4/m4/tests/modules.at,v
retrieving revision 1.7
diff -u -p -u -r1.7 modules.at
--- tests/modules.at 12 Aug 2003 15:33:57 -0000 1.7
+++ tests/modules.at 10 Oct 2003 14:02:33 -0000
@@ -373,7 +373,11 @@ m4: input.m4: 6: Warning: cannot load sy
 m4: input.m4: 7: cannot open module `no_such': no_such.so: cannot open shared 
object file: No such file or directory
 ]])
 
-AT_CHECK_M4([-m load input.m4], 1, expout, experr)
+AT_CHECK_M4([-m load input.m4 2>acterr], 1, expout, ignore)
+
+sed '/^m4: input.m4: 7:/ {
+    s,\(7:[[^:]]*:\).*$,\1 no_such.so: cannot open shared object file: No such 
file or directory, }' < acterr > editerr
+$at_diff experr editerr || echo 1 > $at_status_file
 
 AT_CLEANUP
 

reply via email to

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