1. Carl Meyer
  2. cpython-robust-site

Commits

Nick Coghlan  committed 1cb486f

Give more info in verbose mode when checking crashers, and stress the stack even more in the compiler crasher

  • Participants
  • Parent commits 48970d7
  • Branches default

Comments (0)

Files changed (2)

File Lib/test/crashers/compiler_recursion.py

View file
 # 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')

File Lib/test/test_crashers.py

View file
                 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)