From: Amos Jeffries Date: Sun, 17 Apr 2011 05:59:14 +0000 (+1200) Subject: TestBed: include config.h first when testing headers X-Git-Tag: SQUID_3_1_12_1~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec56b1c9aa1dc8ba5175a8049a62072ae935e672;p=thirdparty%2Fsquid.git TestBed: include config.h first when testing headers --- diff --git a/test-suite/testheaders.sh b/test-suite/testheaders.sh index 457496a12e..11d27c30d3 100755 --- a/test-suite/testheaders.sh +++ b/test-suite/testheaders.sh @@ -21,6 +21,7 @@ for f in `cd ${dir} && ls -1 *.h 2>/dev/null`; do hdr=`echo "${f}" | sed s/.h//` if [ ! -e ./testHeaderDeps_${hdr}.o -o ${dir}/${f} -nt ./testHeaderDeps_${hdr}.o ]; then ( echo "/* This file is AUTOMATICALLY GENERATED. DO NOT ALTER IT */" + echo "#include \"config.h\"" echo "#include \"${dir}/${f}\" " echo "int main( int argc, char* argv[] ) { return 0; } " ) >./testHeaderDeps_${hdr}.cc