cURL / Mailing Lists / curl-library / Single Mail

curl-library

[PATCH] testcurl ares build compiler warnings

From: Tor Arntsen <tor_at_spacetec.no>
Date: Thu, 12 Feb 2004 18:03:16 +0100

When running autobuilds w/ares enabled the sgi/irix compiler warnings are
not ending up in the logfile when running like so: curl/testcurl.sh > logfile
unlike the rest of the output (those warnings go to stderr). The script
doesn't redirect stderr for ares the way it's done elsewhere.

Please find below a suggestive fix that seems to do the right thing.
Note that http://curl.haxx.se/auto/showlog.cgi?year=2004&month=02&day=12&name=Tor%20Arntsen&date=Thu%20Feb%2012%2016%3A43%3A16%20GMT%202004
was executed *with the below patch*. Without it the number of warnings would
appear to be somewhat lower (the ares warnings wouldn't have been visible in
the log).

-Tor

Index: testcurl.sh
===================================================================
RCS file: /repository/curl/testcurl.sh,v
retrieving revision 1.26
diff -u -r1.26 testcurl.sh
--- testcurl.sh 9 Feb 2004 08:55:33 -0000 1.26
+++ testcurl.sh 12 Feb 2004 16:50:36 -0000
@@ -207,7 +207,7 @@
 
   echo "testcurl: build ares"
   cd ares
- make
+ make 2>&1 | sed -e "s:$pwd::g"
   echo "testcurl: ares is now built"
 
   # cd back to the curl build dir
Received on 2004-02-12