Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
1d178982
Commit
1d178982
authored
Jan 21, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Jan 25, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/tests: Test paths that exceed MAX_PATH.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
23817bb8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
test_builtins.cmd
programs/cmd/tests/test_builtins.cmd
+19
-0
test_builtins.cmd.exp
programs/cmd/tests/test_builtins.cmd.exp
+4
-0
No files found.
programs/cmd/tests/test_builtins.cmd
View file @
1d178982
...
...
@@ -3333,6 +3333,25 @@ if errorlevel 1 echo Normal+tab+garbage drive change failed
popd
echo ------------ Testing length wrt. MAX_PATH ------------
rem native cmd limits all path lengths to MAX_PATH=260
pushd c:\
set depth=25
for /L %%d in (0,1,25) do (
mkdir abcdefghij > NUL 2>&1
if exist abcdefghij (
cd abcdefghij
set depth=%%d
)
)
echo %depth%
rem even relative paths are transformed to absolute, and tested against MAX_PATH
echo abc > 01234567890123
if exist 01234567890123 (echo Success) else echo Failure
echo abc > 012345678901234
if exist 012345678901234 (echo Failure) else echo Success
popd
rmdir /s /q c:\abcdefghij
echo ------------ Testing combined CALLs/GOTOs ------------
echo @echo off>foo.cmd
echo goto :eof>>foot.cmd
...
...
programs/cmd/tests/test_builtins.cmd.exp
View file @
1d178982
...
...
@@ -1687,6 +1687,10 @@ Normal+space+garbage
Quoted should fail
Normal+tab
Normal+tab+garbage
------------ Testing length wrt. MAX_PATH ------------
@todo_wine@21
Success
@todo_wine@Success
------------ Testing combined CALLs/GOTOs ------------
world
cheball
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment