Skip to content

test_getcwd_long_path fails on DragonFly BSD #154437

Description

@serhiy-storchaka

Bug report

test_os.MiscTests.test_getcwd_long_path fails on DragonFly BSD:

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:

path length PATH_MAX error
DragonFly BSD 1037 1024 EFAULT
Linux 4267 4096 ENAMETOOLONG

A too long component is reported correctly as ENAMETOOLONG on both.

Linked PRs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixes3.14bugs and security fixes3.15pre-release feature fixes, bugs and security fixes3.16new features, bugs and security fixesOS-unsupportedtestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions