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
4ec00cb2
Commit
4ec00cb2
authored
Jan 04, 2014
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Jan 06, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi/tests: Use BOOL type where appropriate.
parent
a0636366
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
31 deletions
+31
-31
diskspace.c
dlls/setupapi/tests/diskspace.c
+4
-4
parser.c
dlls/setupapi/tests/parser.c
+27
-27
No files found.
dlls/setupapi/tests/diskspace.c
View file @
4ec00cb2
...
...
@@ -29,6 +29,8 @@
#include "wine/test.h"
static
BOOL
is_win9x
;
static
void
test_SetupCreateDiskSpaceListA
(
void
)
{
HDSKSPC
ret
;
...
...
@@ -149,8 +151,6 @@ static void test_SetupCreateDiskSpaceListW(void)
static
void
test_SetupDuplicateDiskSpaceListA
(
void
)
{
HDSKSPC
handle
,
duplicate
;
int
is_win9x
=
!
SetupCreateDiskSpaceListW
((
void
*
)
0xdeadbeef
,
0xdeadbeef
,
0
)
&&
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
;
if
(
is_win9x
)
win_skip
(
"SetupDuplicateDiskSpaceListA crashes with NULL disk space handle on Win9x
\n
"
);
...
...
@@ -305,8 +305,6 @@ static void test_SetupQuerySpaceRequiredOnDriveA(void)
BOOL
ret
;
HDSKSPC
handle
;
LONGLONG
space
;
int
is_win9x
=
!
SetupCreateDiskSpaceListW
((
void
*
)
0xdeadbeef
,
0xdeadbeef
,
0
)
&&
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
;
if
(
is_win9x
)
win_skip
(
"SetupQuerySpaceRequiredOnDriveA crashes with NULL disk space handle on Win9x
\n
"
);
...
...
@@ -476,6 +474,8 @@ static void test_SetupQuerySpaceRequiredOnDriveW(void)
START_TEST
(
diskspace
)
{
is_win9x
=
!
SetupCreateDiskSpaceListW
((
void
*
)
0xdeadbeef
,
0xdeadbeef
,
0
)
&&
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
;
test_SetupCreateDiskSpaceListA
();
test_SetupCreateDiskSpaceListW
();
test_SetupDuplicateDiskSpaceListA
();
...
...
dlls/setupapi/tests/parser.c
View file @
4ec00cb2
...
...
@@ -103,36 +103,36 @@ static const struct
const
char
*
data
;
DWORD
error
;
UINT
err_line
;
int
todo
;
BOOL
todo
;
}
invalid_files
[]
=
{
/* file contents expected error (or 0) errline todo */
{
"
\r\n
"
,
ERROR_WRONG_INF_STYLE
,
0
,
0
},
{
"abcd
\r\n
"
,
ERROR_WRONG_INF_STYLE
,
0
,
1
},
{
"[Version]
\r\n
"
,
ERROR_WRONG_INF_STYLE
,
0
,
0
},
{
"[Version]
\n
Signature="
,
ERROR_WRONG_INF_STYLE
,
0
,
0
},
{
"[Version]
\n
Signature=foo"
,
ERROR_WRONG_INF_STYLE
,
0
,
0
},
{
"[version]
\n
signature=$chicago$"
,
0
,
0
,
0
},
{
"[VERSION]
\n
SIGNATURE=$CHICAGO$"
,
0
,
0
,
0
},
{
"[Version]
\n
Signature=$chicago$,abcd"
,
0
,
0
,
0
},
{
"[Version]
\n
abc=def
\n
Signature=$chicago$"
,
0
,
0
,
0
},
{
"[Version]
\n
abc=def
\n
[Version]
\n
Signature=$chicago$"
,
0
,
0
,
0
},
{
STD_HEADER
,
0
,
0
,
0
},
{
STD_HEADER
"[]
\r\n
"
,
0
,
0
,
0
},
{
STD_HEADER
"]
\r\n
"
,
0
,
0
,
0
},
{
STD_HEADER
"["
A255
"]
\r\n
"
,
0
,
0
,
0
},
{
STD_HEADER
"[ab
\r\n
"
,
ERROR_BAD_SECTION_NAME_LINE
,
3
,
0
},
{
STD_HEADER
"
\n\n
[ab
\x1a
]
\n
"
,
ERROR_BAD_SECTION_NAME_LINE
,
5
,
0
},
{
STD_HEADER
"["
A256
"]
\r\n
"
,
ERROR_SECTION_NAME_TOO_LONG
,
3
,
0
},
{
"[abc]
\n
"
STD_HEADER
,
0
,
0
,
0
},
{
"abc
\r\n
"
STD_HEADER
,
ERROR_EXPECTED_SECTION_NAME
,
1
,
0
},
{
";
\n
;
\n
abc
\r\n
"
STD_HEADER
,
ERROR_EXPECTED_SECTION_NAME
,
3
,
0
},
{
";
\n
;
\n
ab
\n
ab
\n
"
STD_HEADER
,
ERROR_EXPECTED_SECTION_NAME
,
3
,
0
},
{
";aa
\n
;bb
\n
"
STD_HEADER
,
0
,
0
,
0
},
{
STD_HEADER
" [TestSection
\x00
]
\n
"
,
ERROR_BAD_SECTION_NAME_LINE
,
3
,
0
},
{
STD_HEADER
" [Test
\x00
Section]
\n
"
,
ERROR_BAD_SECTION_NAME_LINE
,
3
,
0
},
{
STD_HEADER
" [TestSection
\x00
]
\n
"
,
ERROR_BAD_SECTION_NAME_LINE
,
3
,
0
},
{
STD_HEADER
" [Test
\x00
Section]
\n
"
,
ERROR_BAD_SECTION_NAME_LINE
,
3
,
0
},
{
"
\r\n
"
,
ERROR_WRONG_INF_STYLE
,
0
,
FALSE
},
{
"abcd
\r\n
"
,
ERROR_WRONG_INF_STYLE
,
0
,
TRUE
},
{
"[Version]
\r\n
"
,
ERROR_WRONG_INF_STYLE
,
0
,
FALSE
},
{
"[Version]
\n
Signature="
,
ERROR_WRONG_INF_STYLE
,
0
,
FALSE
},
{
"[Version]
\n
Signature=foo"
,
ERROR_WRONG_INF_STYLE
,
0
,
FALSE
},
{
"[version]
\n
signature=$chicago$"
,
0
,
0
,
FALSE
},
{
"[VERSION]
\n
SIGNATURE=$CHICAGO$"
,
0
,
0
,
FALSE
},
{
"[Version]
\n
Signature=$chicago$,abcd"
,
0
,
0
,
FALSE
},
{
"[Version]
\n
abc=def
\n
Signature=$chicago$"
,
0
,
0
,
FALSE
},
{
"[Version]
\n
abc=def
\n
[Version]
\n
Signature=$chicago$"
,
0
,
0
,
FALSE
},
{
STD_HEADER
,
0
,
0
,
FALSE
},
{
STD_HEADER
"[]
\r\n
"
,
0
,
0
,
FALSE
},
{
STD_HEADER
"]
\r\n
"
,
0
,
0
,
FALSE
},
{
STD_HEADER
"["
A255
"]
\r\n
"
,
0
,
0
,
FALSE
},
{
STD_HEADER
"[ab
\r\n
"
,
ERROR_BAD_SECTION_NAME_LINE
,
3
,
FALSE
},
{
STD_HEADER
"
\n\n
[ab
\x1a
]
\n
"
,
ERROR_BAD_SECTION_NAME_LINE
,
5
,
FALSE
},
{
STD_HEADER
"["
A256
"]
\r\n
"
,
ERROR_SECTION_NAME_TOO_LONG
,
3
,
FALSE
},
{
"[abc]
\n
"
STD_HEADER
,
0
,
0
,
FALSE
},
{
"abc
\r\n
"
STD_HEADER
,
ERROR_EXPECTED_SECTION_NAME
,
1
,
FALSE
},
{
";
\n
;
\n
abc
\r\n
"
STD_HEADER
,
ERROR_EXPECTED_SECTION_NAME
,
3
,
FALSE
},
{
";
\n
;
\n
ab
\n
ab
\n
"
STD_HEADER
,
ERROR_EXPECTED_SECTION_NAME
,
3
,
FALSE
},
{
";aa
\n
;bb
\n
"
STD_HEADER
,
0
,
0
,
FALSE
},
{
STD_HEADER
" [TestSection
\x00
]
\n
"
,
ERROR_BAD_SECTION_NAME_LINE
,
3
,
FALSE
},
{
STD_HEADER
" [Test
\x00
Section]
\n
"
,
ERROR_BAD_SECTION_NAME_LINE
,
3
,
FALSE
},
{
STD_HEADER
" [TestSection
\x00
]
\n
"
,
ERROR_BAD_SECTION_NAME_LINE
,
3
,
FALSE
},
{
STD_HEADER
" [Test
\x00
Section]
\n
"
,
ERROR_BAD_SECTION_NAME_LINE
,
3
,
FALSE
},
};
static
void
test_invalid_files
(
void
)
...
...
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