[Python-checkins] r45471 - python/trunk/Misc/build.sh

neal.norwitz python-checkins at python.org
Mon Apr 17 03:48:41 CEST 2006


Author: neal.norwitz
Date: Mon Apr 17 03:48:41 2006
New Revision: 45471

Modified:
   python/trunk/Misc/build.sh
Log:
test_cmd_line should not leak any more, ensure an empty reflog file exists if no leaks are found

Modified: python/trunk/Misc/build.sh
==============================================================================
--- python/trunk/Misc/build.sh	(original)
+++ python/trunk/Misc/build.sh	Mon Apr 17 03:48:41 2006
@@ -60,7 +60,7 @@
 # Note: test_XXX (none currently) really leak, but are disabled
 # so we don't send spam.  Any test which really leaks should only 
 # be listed here if there are also test cases under Lib/test/leakers.
-LEAKY_TESTS="test_(cmd_line|ctypes|filecmp|socket|threadedtempfile|threading|threading_local|urllib2)"
+LEAKY_TESTS="test_(ctypes|filecmp|socket|threadedtempfile|threading|threading_local|urllib2)"
 
 # Skip these tests altogether when looking for leaks.  These tests
 # do not need to be stored above in LEAKY_TESTS too.
@@ -167,6 +167,8 @@
             ## run the tests looking for leaks
             F=make-test-refleak.out
             start=`current_time`
+            ## ensure that the reflog exists so the grep doesn't fail
+            touch $REFLOG
             ./python ./Lib/test/regrtest.py -R 4:3:$REFLOG -u network $LEAKY_SKIPS >& build/$F
             NUM_FAILURES=`egrep -vc "$LEAKY_TESTS" $REFLOG`
             update_status "Testing refleaks ($NUM_FAILURES failures)" "$F" $start


More information about the Python-checkins mailing list