]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
TestBed: include config.h first when testing headers
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 17 Apr 2011 05:59:14 +0000 (17:59 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 17 Apr 2011 05:59:14 +0000 (17:59 +1200)
test-suite/testheaders.sh

index 457496a12eb6366d573d3abcddcbd6d564d8f16b..11d27c30d3bf6cb416260ab925818b9b15120354 100755 (executable)
@@ -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