cpython/Lib/test/libregrtest
Miss Islington (bot) bd92b94da9
bpo-34602: Avoid failures setting macOS stack resource limit (GH-14546)
Under some conditions the earlier fix for bpo-18075, "Infinite recursion
tests triggering a segfault on Mac OS X", now causes failures on macOS
when attempting to change stack limit with resource.setrlimit
resource.RLIMIT_STACK, like regrtest does when running the test suite.
The reverted change had specified a non-default stack size when linking
the python executable on macOS.  As of macOS 10.14.4, the previous
code causes a hard failure when running tests, although similar
failures had been seen under some conditions under some earlier
systems.  Reverting the change to the interpreter stack size at link
time helped for release builds but caused some tests to fail when
built --with-pydebug.  Try the opposite approach: continue to build
the interpreter with an increased stack size on macOS and remove
the failing setrlimit call in regrtest initialization.  This will
definitely avoid the resource.RLIMIT_STACK error and should have
no, or fewer, side effects.
(cherry picked from commit 5bbbc733e6)

Co-authored-by: Ned Deily <nad@python.org>
2019-07-02 00:31:07 -07:00
..
__init__.py bpo-30822: Exclude tzdata from regrtest --all (#2775) 2017-07-20 15:46:32 +02:00
cmdline.py bpo-37359: Add --cleanup option to python3 -m test (GH-14332) (GH-14334) 2019-06-24 12:51:47 +02:00
main.py Remove unused imports in tests (GH-14518) (GH-14520) 2019-07-01 19:01:52 +02:00
refleak.py bpo-36725: regrtest: add TestResult type (GH-12960) 2019-04-26 04:08:53 +02:00
runtest.py bpo-36719: regrtest -jN no longer stops on crash (GH-13231) 2019-05-13 19:17:54 +02:00
runtest_mp.py bpo-36915: regrtest always remove tempdir of worker processes (GH-13312) 2019-05-14 15:49:16 +02:00
save_env.py bpo-36725: regrtest: add TestResult type (GH-12960) 2019-04-26 04:08:53 +02:00
setup.py bpo-34602: Avoid failures setting macOS stack resource limit (GH-14546) 2019-07-02 00:31:07 -07:00
utils.py bpo-36725: regrtest: add TestResult type (GH-12960) 2019-04-26 04:08:53 +02:00
win_utils.py bpo-36719: regrtest closes explicitly WindowsLoadTracker (GH-12965) 2019-04-26 11:12:26 +02:00