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
eca3d748
Commit
eca3d748
authored
Jun 03, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Jun 04, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Skip WritePrivateProfileString tests on Win9x/WinME.
parent
cb814877
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
profile.c
dlls/kernel32/tests/profile.c
+13
-8
No files found.
dlls/kernel32/tests/profile.c
View file @
eca3d748
...
...
@@ -822,18 +822,12 @@ static void test_GetPrivateProfileString(const char *content, const char *descri
DeleteFileA
(
filename
);
}
static
DWORD
timeout
=
0
;
static
BOOL
check_binary_file_data
(
LPCSTR
path
,
const
VOID
*
data
,
DWORD
size
)
{
HANDLE
file
;
CHAR
buf
[
MAX_PATH
];
BOOL
ret
;
/* Sleep() is needed on Win9x and WinME */
if
(
timeout
)
Sleep
(
timeout
);
file
=
CreateFileA
(
path
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
OPEN_EXISTING
,
0
,
0
);
if
(
file
==
INVALID_HANDLE_VALUE
)
return
FALSE
;
...
...
@@ -864,6 +858,19 @@ static void test_WritePrivateProfileString(void)
CHAR
path
[
MAX_PATH
];
CHAR
temp
[
MAX_PATH
];
SetLastError
(
0xdeadbeef
);
ret
=
WritePrivateProfileStringW
(
NULL
,
NULL
,
NULL
,
NULL
);
if
(
!
ret
&&
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
{
/* Win9x/WinME needs (variable) timeouts between tests and even long timeouts don't
* guarantee a correct result.
* Win9x/WinMe also produces different ini files where there is always a newline before
* a section start (except for the first one).
*/
win_skip
(
"WritePrivateProfileString on Win9x/WinME is hard to test reliably
\n
"
);
return
;
}
GetTempPathA
(
MAX_PATH
,
temp
);
GetTempFileNameA
(
temp
,
"wine"
,
0
,
path
);
DeleteFileA
(
path
);
...
...
@@ -878,8 +885,6 @@ static void test_WritePrivateProfileString(void)
broken
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
)
||
/* NT4 */
broken
(
GetLastError
()
==
0xdeadbeef
),
/* Win9x and WinME */
"Expected ERROR_FILE_NOT_FOUND, got %d
\n
"
,
GetLastError
());
if
(
GetLastError
()
==
0xdeadbeef
)
timeout
=
1000
;
ok
(
GetFileAttributesA
(
path
)
==
INVALID_FILE_ATTRIBUTES
,
"Expected path to not exist
\n
"
);
...
...
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