Skip to content

Commit

Permalink
bpo-31904: Fix test_os.test_getcwd_long_path() failure for VxWorks (G…
Browse files Browse the repository at this point in the history
  • Loading branch information
pxinwr committed Nov 28, 2020
1 parent d41ec65 commit aa1b8a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Lib/test/test_os.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ def test_getcwd_long_path(self):
# than MAX_PATH if long paths support is disabled:
# see RtlAreLongPathsEnabled().
min_len = 2000 # characters
# On VxWorks, PATH_MAX is defined as 1024 bytes. Creating a path
# longer than PATH_MAX will fail.
if sys.platform == 'vxworks':
min_len = 1000
dirlen = 200 # characters
dirname = 'python_test_dir_'
dirname = dirname + ('a' * (dirlen - len(dirname)))
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix os module failures for VxWorks RTOS.

0 comments on commit aa1b8a1

Please sign in to comment.