--------------------- PatchSet 7219 Date: 2008/03/03 04:59:13 Author: amosjeffries Branch: cleanup Tag: (none) Log: Update .h script to remove testheaders binary cleanly when errors detected. It was leaving the binary behind so a second "make check" would not detect the same problems as a first unless the problem files had been edited. Members: test-suite/testheaders.sh:1.1.2.5->1.1.2.6 Index: squid3/test-suite/testheaders.sh =================================================================== RCS file: /cvsroot/squid-sf//squid3/test-suite/Attic/testheaders.sh,v retrieving revision 1.1.2.5 retrieving revision 1.1.2.6 diff -u -r1.1.2.5 -r1.1.2.6 --- squid3/test-suite/testheaders.sh 20 Feb 2008 11:38:45 -0000 1.1.2.5 +++ squid3/test-suite/testheaders.sh 3 Mar 2008 04:59:13 -0000 1.1.2.6 @@ -26,14 +26,15 @@ # run compile test on the new file. # DEBUG: echo "TRY: ${cc} -o testHeaderDeps.o ./testHeaderDeps_${f/.h/}.cc" - ${cc} -o testHeaderDeps_${f/.h/}.o ./testHeaderDeps_${f/.h/}.cc || exit 1 + ${cc} -o testHeaderDeps_${f/.h/}.o ./testHeaderDeps_${f/.h/}.cc rm ./testHeaderDeps_${f/.h/}.cc fi + if [ ! -f testHeaderDeps_${f/.h/}.o ]; then + rm testHeaders + exit 1 + fi echo "OK." # unit-tests require an app to run. # our most-recent object suits this purpose cp ./testHeaderDeps_${f/.h/}.o ./testHeaders done - -# remove the test temporary files -# rm ./testHeaderDeps*