summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-04-17 01:48:41 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-04-17 01:48:41 (GMT)
commit0f77da36e9a44b80f2a5d828602f4bbadad1a233 (patch)
treefc4ef094c533bc460bc60b7e65ec143136b22650 /Misc
parentcb0f66f0abb6f24cad53e0eefbea1f23cd0e5f6c (diff)
downloadcpython-0f77da36e9a44b80f2a5d828602f4bbadad1a233.zip
cpython-0f77da36e9a44b80f2a5d828602f4bbadad1a233.tar.gz
cpython-0f77da36e9a44b80f2a5d828602f4bbadad1a233.tar.bz2
test_cmd_line should not leak any more, ensure an empty reflog file exists if no leaks are found
Diffstat (limited to 'Misc')
-rwxr-xr-xMisc/build.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/Misc/build.sh b/Misc/build.sh
index d598831..f87f46c 100755
--- a/Misc/build.sh
+++ b/Misc/build.sh
@@ -60,7 +60,7 @@ REFLOG="build/reflog.txt.out"
# 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 @@ if [ $err = 0 -a "$BUILD_DISABLED" != "yes" ]; then
## 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