Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
f2f69a87
Commit
f2f69a87
authored
Feb 02, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Feb 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Add more tests for RtlDosPathNameToNtPathName_U().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
32854b7e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
path.c
dlls/ntdll/tests/path.c
+17
-0
No files found.
dlls/ntdll/tests/path.c
View file @
f2f69a87
...
...
@@ -436,6 +436,18 @@ static void test_RtlDosPathNameToNtPathName_U(void)
{
L"c:/"
,
L"
\\
??
\\
c:
\\
"
,
-
1
},
{
L"c:/foo"
,
L"
\\
??
\\
c:
\\
foo"
,
7
},
{
L"c:/foo."
,
L"
\\
??
\\
c:
\\
foo"
,
7
},
{
L"c:/foo "
,
L"
\\
??
\\
c:
\\
foo"
,
7
},
{
L"c:/foo . ."
,
L"
\\
??
\\
c:
\\
foo"
,
7
},
{
L"c:/foo.a"
,
L"
\\
??
\\
c:
\\
foo.a"
,
7
},
{
L"c:/foo a"
,
L"
\\
??
\\
c:
\\
foo a"
,
7
},
{
L"c:/foo*"
,
L"
\\
??
\\
c:
\\
foo*"
,
7
},
{
L"c:/foo*a"
,
L"
\\
??
\\
c:
\\
foo*a"
,
7
},
{
L"c:/foo?"
,
L"
\\
??
\\
c:
\\
foo?"
,
7
},
{
L"c:/foo?a"
,
L"
\\
??
\\
c:
\\
foo?a"
,
7
},
{
L"c:/foo<"
,
L"
\\
??
\\
c:
\\
foo<"
,
7
},
{
L"c:/foo<a"
,
L"
\\
??
\\
c:
\\
foo<a"
,
7
},
{
L"c:/foo>"
,
L"
\\
??
\\
c:
\\
foo>"
,
7
},
{
L"c:/foo>a"
,
L"
\\
??
\\
c:
\\
foo>a"
,
7
},
{
L"c:/foo/"
,
L"
\\
??
\\
c:
\\
foo
\\
"
,
-
1
},
{
L"c:/foo//"
,
L"
\\
??
\\
c:
\\
foo
\\
"
,
-
1
},
{
L"C:/foo"
,
L"
\\
??
\\
C:
\\
foo"
,
7
},
...
...
@@ -477,6 +489,7 @@ static void test_RtlDosPathNameToNtPathName_U(void)
{
L"//./foo/bar"
,
L"
\\
??
\\
foo
\\
bar"
,
8
},
{
L"//./foo/."
,
L"
\\
??
\\
foo"
,
4
},
{
L"//./foo/.."
,
L"
\\
??
\\
"
,
-
1
},
{
L"//./foo. . "
,
L"
\\
??
\\
foo"
,
4
},
{
L"//?"
,
L"
\\
??
\\
"
,
-
1
},
{
L"//?/"
,
L"
\\
??
\\
"
,
-
1
},
...
...
@@ -486,6 +499,7 @@ static void test_RtlDosPathNameToNtPathName_U(void)
{
L"//?/foo/bar"
,
L"
\\
??
\\
foo
\\
bar"
,
8
},
{
L"//?/foo/."
,
L"
\\
??
\\
foo"
,
4
},
{
L"//?/foo/.."
,
L"
\\
??
\\
"
,
-
1
},
{
L"//?/foo. . "
,
L"
\\
??
\\
foo"
,
4
},
{
L"
\\\\
."
,
L"
\\
??
\\
"
,
-
1
},
{
L"
\\\\
.
\\
"
,
L"
\\
??
\\
"
,
-
1
},
...
...
@@ -495,6 +509,7 @@ static void test_RtlDosPathNameToNtPathName_U(void)
{
L"
\\\\
.
\\
foo/bar"
,
L"
\\
??
\\
foo
\\
bar"
,
8
},
{
L"
\\\\
.
\\
foo/."
,
L"
\\
??
\\
foo"
,
4
},
{
L"
\\\\
.
\\
foo/.."
,
L"
\\
??
\\
"
,
-
1
},
{
L"
\\\\
.
\\
foo. . "
,
L"
\\
??
\\
foo"
,
4
},
{
L"
\\\\
?"
,
L"
\\
??
\\
"
,
-
1
},
{
L"
\\\\
?
\\
"
,
L"
\\
??
\\
"
,
-
1
},
...
...
@@ -511,6 +526,7 @@ static void test_RtlDosPathNameToNtPathName_U(void)
{
L"
\\\\
?
\\
foo
\\
bar"
,
L"
\\
??
\\
foo
\\
bar"
,
8
},
{
L"
\\\\
?
\\
foo
\\
."
,
L"
\\
??
\\
foo
\\
."
,
8
},
{
L"
\\\\
?
\\
foo
\\
.."
,
L"
\\
??
\\
foo
\\
.."
,
8
},
{
L"
\\\\
?
\\
foo. . "
,
L"
\\
??
\\
foo. . "
,
4
},
{
L"
\\
??"
,
L"
\\
??
\\
C:
\\
??"
,
7
},
{
L"
\\
??
\\
"
,
L"
\\
??
\\
C:
\\
??
\\
"
,
-
1
},
...
...
@@ -527,6 +543,7 @@ static void test_RtlDosPathNameToNtPathName_U(void)
{
L"
\\
??
\\
foo
\\
bar"
,
L"
\\
??
\\
foo
\\
bar"
,
8
},
{
L"
\\
??
\\
foo
\\
."
,
L"
\\
??
\\
foo
\\
."
,
8
},
{
L"
\\
??
\\
foo
\\
.."
,
L"
\\
??
\\
foo
\\
.."
,
8
},
{
L"
\\
??
\\
foo. . "
,
L"
\\
??
\\
foo. . "
,
4
},
{
L"CONIN$"
,
L"
\\
??
\\
CONIN$"
,
-
1
,
L"
\\
??
\\
C:
\\
windows
\\
CONIN$"
/* winxp */
},
{
L"CONOUT$"
,
L"
\\
??
\\
CONOUT$"
,
-
1
,
L"
\\
??
\\
C:
\\
windows
\\
CONOUT$"
/* winxp */
},
...
...
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