summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-04-12 05:56:00 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-04-12 05:56:00 (GMT)
commitee6d23e500c456d6cd34dd8be9aac5cac62d81a7 (patch)
tree2b46e6ce9177e3e46b6fca8ce69043b95f189599 /Misc
parentd3a9162e5eda1c9938d77db8197c9424b4a317f1 (diff)
downloadcpython-ee6d23e500c456d6cd34dd8be9aac5cac62d81a7.zip
cpython-ee6d23e500c456d6cd34dd8be9aac5cac62d81a7.tar.gz
cpython-ee6d23e500c456d6cd34dd8be9aac5cac62d81a7.tar.bz2
Update comments and the skip list, maybe some of these tests don't
report failures, we'll see. Skip certain hopeless tests: compiler and logging. compiler will likely always show varying leaks since it doesn't work on a defined set of modules unless -u compiler is specified. But that takes forever (we only run with -u network currently). logging causes hangs when running with -R.
Diffstat (limited to 'Misc')
-rwxr-xr-xMisc/build.sh13
1 files changed, 10 insertions, 3 deletions
diff --git a/Misc/build.sh b/Misc/build.sh
index 2c95403..d598831 100755
--- a/Misc/build.sh
+++ b/Misc/build.sh
@@ -55,12 +55,19 @@ INSTALL_DIR="/tmp/python-test/local"
RSYNC_OPTS="-aC -e ssh"
REFLOG="build/reflog.txt.out"
-# These tests are not stable and often falsely report leaks.
+# These tests are not stable and falsely report leaks sometimes.
# The entire leak report will be mailed if any test not in this list leaks.
# 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_(capi|cfgparser|charmapcodec|cmd_line|compiler|ctypes|filecmp|quopri|socket|threaded_import|threadedtempfile|threading|threading_local)"
+LEAKY_TESTS="test_(cmd_line|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.
+# test_compiler almost never finishes with the same number of refs
+# since it depends on other modules, skip it.
+# test_logging causes hangs, skip it.
+LEAKY_SKIPS="-x test_compiler test_logging"
# Change this flag to "yes" for old releases to only update/build the docs.
BUILD_DISABLED="no"
@@ -160,7 +167,7 @@ if [ $err = 0 -a "$BUILD_DISABLED" != "yes" ]; then
## run the tests looking for leaks
F=make-test-refleak.out
start=`current_time`
- ./python ./Lib/test/regrtest.py -R 4:3:$REFLOG -u network >& build/$F
+ ./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
mail_on_failure "refleak" $REFLOG