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
3b43c4e5
Commit
3b43c4e5
authored
Dec 04, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Dec 04, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Correct some ok() statements.
parent
e018a5e2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
path.c
dlls/kernel32/tests/path.c
+13
-10
No files found.
dlls/kernel32/tests/path.c
View file @
3b43c4e5
...
...
@@ -954,7 +954,7 @@ static void test_GetTempPath(void)
static
void
test_GetLongPathNameA
(
void
)
{
DWORD
length
,
tem
plength
,
hostsize
;
DWORD
length
,
ex
plength
,
hostsize
;
char
tempfile
[
MAX_PATH
];
char
longpath
[
MAX_PATH
];
char
unc_prefix
[
MAX_PATH
];
...
...
@@ -984,16 +984,16 @@ static void test_GetLongPathNameA(void)
memset
(
temppath2
,
0
,
MAX_PATH
);
lstrcpyA
(
temppath2
,
"
\\\\
?
\\
"
);
lstrcatA
(
temppath2
,
tempfile
);
templength
=
length
;
explength
=
length
+
4
;
length
=
pGetLongPathNameA
(
temppath2
,
NULL
,
0
);
ok
(
length
==
templength
+
4
,
"Wrong length %d, expected %d
\n
"
,
length
,
templength
+
4
);
ok
(
length
==
explength
,
"Wrong length %d, expected %d
\n
"
,
length
,
explength
);
length
=
pGetLongPathNameA
(
temppath2
,
NULL
,
MAX_PATH
);
ok
(
length
==
templength
+
4
,
"Wrong length %d, expected %d
\n
"
,
length
,
templength
+
4
);
ok
(
length
==
explength
,
"Wrong length %d, expected %d
\n
"
,
length
,
explength
);
length
=
pGetLongPathNameA
(
temppath2
,
temppath
,
4
);
ok
(
length
==
templength
+
4
,
"Wrong length %d, expected %d
\n
"
,
length
,
templength
+
4
);
ok
(
length
==
explength
,
"Wrong length %d, expected %d
\n
"
,
length
,
explength
);
ok
(
temppath
[
0
]
==
0
,
"Buffer should not have been touched
\n
"
);
/* Now an UNC path with the computername */
...
...
@@ -1020,27 +1020,30 @@ static void test_GetLongPathNameA(void)
/* NULL test */
length
=
pGetLongPathNameA
(
unc_short
,
NULL
,
0
);
explength
=
lstrlenA
(
longpath
)
+
1
;
todo_wine
ok
(
length
==
lstrlenA
(
longpath
)
+
1
,
"Wrong length, expected %d
\n
"
,
length
);
ok
(
length
==
explength
,
"Wrong length %d, expected %d
\n
"
,
length
,
exp
length
);
length
=
pGetLongPathNameA
(
unc_short
,
NULL
,
MAX_PATH
);
todo_wine
ok
(
length
==
lstrlenA
(
longpath
)
+
1
,
"Wrong length, expected %d
\n
"
,
length
);
ok
(
length
==
explength
,
"Wrong length %d, expected %d
\n
"
,
length
,
exp
length
);
memset
(
unc_long
,
0
,
MAX_PATH
);
length
=
pGetLongPathNameA
(
unc_short
,
unc_long
,
lstrlenA
(
unc_short
));
/* length will include terminating '0' on failure */
todo_wine
ok
(
length
==
lstrlenA
(
longpath
)
+
1
,
"Wrong length, expected %d
\n
"
,
length
);
ok
(
length
==
explength
,
"Wrong length %d, expected %d
\n
"
,
length
,
exp
length
);
ok
(
unc_long
[
0
]
==
0
,
"Buffer should not have been touched
\n
"
);
memset
(
unc_long
,
0
,
MAX_PATH
);
templength
=
length
;
length
=
pGetLongPathNameA
(
unc_short
,
unc_long
,
length
);
/* length doesn't include terminating '0' on success */
ok
(
length
==
templength
-
1
,
"Wrong length %d, expected %d
\n
"
,
length
,
templength
-
1
)
;
explength
--
;
todo_wine
{
ok
(
length
==
explength
,
"Wrong length %d, expected %d
\n
"
,
length
,
explength
);
ok
(
!
lstrcmpiA
(
unc_long
,
longpath
),
"Expected (%s), got (%s)
\n
"
,
longpath
,
unc_long
);
}
DeleteFileA
(
tempfile
);
}
...
...
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