ERROR: test_getcwd_long_path (test.test_os.test_os.MiscTests.test_getcwd_long_path)
File "Lib/test/test_os/test_os.py", line 149, in test_getcwd_long_path
os.mkdir(path)
OSError: [Errno 14] Bad address: '/tmp/tmpiv_9ahb1/python_test_dir_aaa...'
The test creates nested directories until the path becomes too long, and expects ENAMETOOLONG, but DragonFly BSD raises EFAULT when the path exceeds PATH_MAX:
Bug report
test_os.MiscTests.test_getcwd_long_pathfails on DragonFly BSD:The test creates nested directories until the path becomes too long, and expects
ENAMETOOLONG, but DragonFly BSD raisesEFAULTwhen the path exceedsPATH_MAX:PATH_MAXEFAULTENAMETOOLONGA too long component is reported correctly as
ENAMETOOLONGon both.Linked PRs