[Python-checkins] cpython: Give more info in verbose mode when checking crashers, and stress the stack

nick.coghlan python-checkins at python.org
Thu Mar 17 15:35:29 CET 2011


http://hg.python.org/cpython/rev/1cb486f4e18d
changeset:   68649:1cb486f4e18d
user:        Nick Coghlan <ncoghlan at gmail.com>
date:        Thu Mar 17 11:04:34 2011 -0400
summary:
  Give more info in verbose mode when checking crashers, and stress the stack even more in the compiler crasher

files:
  Lib/test/crashers/compiler_recursion.py
  Lib/test/test_crashers.py

diff --git a/Lib/test/crashers/compiler_recursion.py b/Lib/test/crashers/compiler_recursion.py
--- a/Lib/test/crashers/compiler_recursion.py
+++ b/Lib/test/crashers/compiler_recursion.py
@@ -9,5 +9,5 @@
 # e.g. '1*'*10**5+'1' will die in compiler_visit_expr
 
 # The exact limit to destroy the stack will vary by platform
-# but 100k should do the trick most places
-compile('()'*10**5, '?', 'exec')
+# but 1M should do the trick most places
+compile('()'*10**6, '?', 'exec')
diff --git a/Lib/test/test_crashers.py b/Lib/test/test_crashers.py
--- a/Lib/test/test_crashers.py
+++ b/Lib/test/test_crashers.py
@@ -24,6 +24,8 @@
                 continue
             # Some "crashers" only trigger an exception rather than a
             # segfault. Consider that an acceptable outcome.
+            if test.support.verbose:
+                print("Checking crasher:", fname)
             assert_python_failure(fname)
 
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list