[Pcre-svn] [389] code/trunk/maint/ManyConfigTests: Include …

Top Page
Delete this message
Author: Subversion repository
Date:  
To: pcre-svn
Subject: [Pcre-svn] [389] code/trunk/maint/ManyConfigTests: Include --enable-never-backslash-C in one test, and arrange to ignore spurious
Revision: 389
          http://www.exim.org/viewvc/pcre2?view=rev&revision=389
Author:   ph10
Date:     2015-10-17 19:31:29 +0100 (Sat, 17 Oct 2015)
Log Message:
-----------
Include --enable-never-backslash-C in one test, and arrange to ignore spurious 
warning message from ar: `u' modifier ignored ...


Modified Paths:
--------------
    code/trunk/maint/ManyConfigTests


Modified: code/trunk/maint/ManyConfigTests
===================================================================
--- code/trunk/maint/ManyConfigTests    2015-10-17 18:29:01 UTC (rev 388)
+++ code/trunk/maint/ManyConfigTests    2015-10-17 18:31:29 UTC (rev 389)
@@ -123,8 +123,24 @@
     exit 1
   fi


+# There is an infelicity in the Autotools world (as of October 2015) which
+# causes the message
+#
+# ar: `u' modifier ignored since `D' is the default (see `U')
+# 
+# to be output while linking. This triggers an unwanted error report from this
+# script, because it expects no stderr output while making. To get round this
+# we filter the stderr output through sed, removing all occurrences of the
+# above lines. Just for paranoia, check that sed is available before doing
+# this.
+  
   echo "Making"
   make -j >/dev/null 2>teststderrM
+  if command -v sed >/dev/null 2>&1 ; then
+    sed "/\`u' modifier ignored since \`D' is the default/ d" \
+      teststderrM > teststderrMM
+    mv -f teststderrMM teststderrM   
+  fi
   if [ $? -ne 0 -o -s teststderrM ]; then
     echo " "
     echo "******** Errors or warnings while making ********"
@@ -274,7 +290,7 @@
     "--disable-static" \
     "--disable-shared" \
     "--disable-unicode --disable-stack-for-recursion --disable-shared" \
-    "--disable-stack-for-recursion --disable-shared" \
+    "--disable-stack-for-recursion --disable-shared --enable-never-backslash-C" \
     "--with-link-size=3 --disable-shared" \
     "--disable-unicode --enable-rebuild-chartables --disable-shared" \
     "--disable-unicode --enable-newline-is-any --disable-shared" \