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
437c8465
Commit
437c8465
authored
Sep 25, 2013
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 27, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Add proper skips in tests.
parent
12e0b057
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
8 deletions
+29
-8
path.c
dlls/ntdll/tests/path.c
+29
-8
No files found.
dlls/ntdll/tests/path.c
View file @
437c8465
...
...
@@ -30,7 +30,7 @@ static BOOLEAN (WINAPI *pRtlIsNameLegalDOS8Dot3)(const UNICODE_STRING*,POEM_STRI
static
DWORD
(
WINAPI
*
pRtlGetFullPathName_U
)(
const
WCHAR
*
,
ULONG
,
WCHAR
*
,
WCHAR
**
);
static
void
test_RtlDetermineDosPathNameType
(
void
)
static
void
test_RtlDetermineDosPathNameType
_U
(
void
)
{
struct
test
{
...
...
@@ -75,6 +75,12 @@ static void test_RtlDetermineDosPathNameType(void)
WCHAR
buffer
[
MAX_PATH
];
UINT
ret
;
if
(
!
pRtlDetermineDosPathNameType_U
)
{
win_skip
(
"RtlDetermineDosPathNameType_U is not available
\n
"
);
return
;
}
for
(
test
=
tests
;
test
->
path
;
test
++
)
{
pRtlMultiByteToUnicodeN
(
buffer
,
sizeof
(
buffer
),
NULL
,
test
->
path
,
strlen
(
test
->
path
)
+
1
);
...
...
@@ -84,7 +90,7 @@ static void test_RtlDetermineDosPathNameType(void)
}
static
void
test_RtlIsDosDeviceName
(
void
)
static
void
test_RtlIsDosDeviceName
_U
(
void
)
{
struct
test
{
...
...
@@ -142,6 +148,12 @@ static void test_RtlIsDosDeviceName(void)
WCHAR
buffer
[
2000
];
ULONG
ret
;
if
(
!
pRtlIsDosDeviceName_U
)
{
win_skip
(
"RtlIsDosDeviceName_U is not available
\n
"
);
return
;
}
for
(
test
=
tests
;
test
->
path
;
test
++
)
{
pRtlMultiByteToUnicodeN
(
buffer
,
sizeof
(
buffer
),
NULL
,
test
->
path
,
strlen
(
test
->
path
)
+
1
);
...
...
@@ -195,6 +207,12 @@ static void test_RtlIsNameLegalDOS8Dot3(void)
char
buff2
[
12
];
BOOLEAN
ret
,
spaces
;
if
(
!
pRtlIsNameLegalDOS8Dot3
)
{
win_skip
(
"RtlIsNameLegalDOS8Dot3 is not available
\n
"
);
return
;
}
ustr
.
MaximumLength
=
sizeof
(
buffer
);
ustr
.
Buffer
=
buffer
;
for
(
test
=
tests
;
test
->
path
;
test
++
)
...
...
@@ -272,6 +290,12 @@ static void test_RtlGetFullPathName_U(void)
DWORD
reslen
;
UINT
len
;
if
(
!
pRtlGetFullPathName_U
)
{
win_skip
(
"RtlGetFullPathName_U is not available
\n
"
);
return
;
}
file_part
=
(
WCHAR
*
)
0xdeadbeef
;
lstrcpyW
(
rbufferW
,
deadbeefW
);
ret
=
pRtlGetFullPathName_U
(
NULL
,
MAX_PATH
,
rbufferW
,
&
file_part
);
...
...
@@ -334,12 +358,9 @@ START_TEST(path)
pRtlOemStringToUnicodeString
=
(
void
*
)
GetProcAddress
(
mod
,
"RtlOemStringToUnicodeString"
);
pRtlIsNameLegalDOS8Dot3
=
(
void
*
)
GetProcAddress
(
mod
,
"RtlIsNameLegalDOS8Dot3"
);
pRtlGetFullPathName_U
=
(
void
*
)
GetProcAddress
(
mod
,
"RtlGetFullPathName_U"
);
if
(
pRtlDetermineDosPathNameType_U
)
test_RtlDetermineDosPathNameType
();
if
(
pRtlIsDosDeviceName_U
)
test_RtlIsDosDeviceName
();
if
(
pRtlIsNameLegalDOS8Dot3
)
test_RtlDetermineDosPathNameType_U
();
test_RtlIsDosDeviceName_U
();
test_RtlIsNameLegalDOS8Dot3
();
if
(
pRtlGetFullPathName_U
&&
pRtlMultiByteToUnicodeN
)
test_RtlGetFullPathName_U
();
}
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