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
a4cc8bc6
Commit
a4cc8bc6
authored
Feb 28, 2011
by
Austin English
Committed by
Alexandre Julliard
Mar 01, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi/tests: Remove win9x hacks.
parent
9b918192
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
27 deletions
+9
-27
string.c
dlls/shlwapi/tests/string.c
+9
-27
No files found.
dlls/shlwapi/tests/string.c
View file @
a4cc8bc6
...
@@ -567,11 +567,7 @@ static void test_StrFormatKBSizeW(void)
...
@@ -567,11 +567,7 @@ static void test_StrFormatKBSizeW(void)
pStrFormatKBSizeW
(
result
->
value
,
szBuffW
,
256
);
pStrFormatKBSizeW
(
result
->
value
,
szBuffW
,
256
);
WideCharToMultiByte
(
0
,
0
,
szBuffW
,
-
1
,
szBuff
,
sizeof
(
szBuff
)
/
sizeof
(
WCHAR
),
0
,
0
);
WideCharToMultiByte
(
0
,
0
,
szBuffW
,
-
1
,
szBuff
,
sizeof
(
szBuff
)
/
sizeof
(
WCHAR
),
0
,
0
);
/* shlwapi on Win98 SE does not appear to apply delimiters to the output
ok
(
!
strcmp
(
result
->
kb_size
,
szBuff
),
"Formatted %x%08x wrong: got %s, expected %s
\n
"
,
* and does not correctly handle extremely large values. */
ok
(
!
strcmp
(
result
->
kb_size
,
szBuff
)
||
(
result
->
kb_size_broken
&&
!
strcmp
(
result
->
kb_size2
,
szBuff
)),
"Formatted %x%08x wrong: got %s, expected %s
\n
"
,
(
LONG
)(
result
->
value
>>
32
),
(
LONG
)
result
->
value
,
szBuff
,
result
->
kb_size
);
(
LONG
)(
result
->
value
>>
32
),
(
LONG
)
result
->
value
,
szBuff
,
result
->
kb_size
);
result
++
;
result
++
;
}
}
...
@@ -786,15 +782,6 @@ static void test_StrRStrI(void)
...
@@ -786,15 +782,6 @@ static void test_StrRStrI(void)
LPWSTR
retW
;
LPWSTR
retW
;
LPSTR
retA
;
LPSTR
retA
;
/* StrCpyNXA was chosen simply because it doesn't appear to be available on
* Win9x machines where StrRStrI crashes. Despite StrRStrI being exported
* by name, all StrRStrI tests appear to crash for unknown reasons. */
if
(
!
pStrCpyNXA
)
{
win_skip
(
"StrRStrI crashes on older Win9x platforms
\n
"
);
return
;
}
check_strrstri
(
A
,
szTest
,
4
,
"A"
,
szTest
+
1
);
check_strrstri
(
A
,
szTest
,
4
,
"A"
,
szTest
+
1
);
check_strrstri
(
A
,
szTest
,
4
,
"aX"
,
szTest
+
1
);
check_strrstri
(
A
,
szTest
,
4
,
"aX"
,
szTest
+
1
);
check_strrstri
(
A
,
szTest
,
4
,
"Ay"
,
NULL
);
check_strrstri
(
A
,
szTest
,
4
,
"Ay"
,
NULL
);
...
@@ -909,15 +896,10 @@ if (0)
...
@@ -909,15 +896,10 @@ if (0)
expect_eq
(
wbuf
[
0
],
0
,
WCHAR
,
"%x"
);
expect_eq
(
wbuf
[
0
],
0
,
WCHAR
,
"%x"
);
expect_eq
(
wbuf
[
1
],
(
WCHAR
)
0xbfbf
,
WCHAR
,
"%x"
);
expect_eq
(
wbuf
[
1
],
(
WCHAR
)
0xbfbf
,
WCHAR
,
"%x"
);
if
(
pStrCpyNXA
)
memset
(
wbuf
,
0xbf
,
sizeof
(
wbuf
));
{
expect_eq
(
StrCpyNW
(
wbuf
,
0
,
10
),
wbuf
,
PWCHAR
,
"%p"
);
memset
(
wbuf
,
0xbf
,
sizeof
(
wbuf
));
expect_eq
(
wbuf
[
0
],
0
,
WCHAR
,
"%x"
);
expect_eq
(
StrCpyNW
(
wbuf
,
0
,
10
),
wbuf
,
PWCHAR
,
"%p"
);
expect_eq
(
wbuf
[
1
],
(
WCHAR
)
0xbfbf
,
WCHAR
,
"%x"
);
expect_eq
(
wbuf
[
0
],
0
,
WCHAR
,
"%x"
);
expect_eq
(
wbuf
[
1
],
(
WCHAR
)
0xbfbf
,
WCHAR
,
"%x"
);
}
else
win_skip
(
"StrCpyNW test crashes on older Win9x platforms
\n
"
);
memset
(
wbuf
,
0xbf
,
sizeof
(
wbuf
));
memset
(
wbuf
,
0xbf
,
sizeof
(
wbuf
));
expect_eq
(
StrCpyNW
(
wbuf
,
0
,
0
),
wbuf
,
PWCHAR
,
"%p"
);
expect_eq
(
StrCpyNW
(
wbuf
,
0
,
0
),
wbuf
,
PWCHAR
,
"%p"
);
...
@@ -1012,7 +994,7 @@ static void test_StrStrA(void)
...
@@ -1012,7 +994,7 @@ static void test_StrStrA(void)
LPSTR
ret
;
LPSTR
ret
;
int
i
;
int
i
;
/* Tests crash on Win
9x/Win2k.
*/
/* Tests crash on Win
2k
*/
if
(
0
)
if
(
0
)
{
{
ret
=
StrStrA
(
NULL
,
NULL
);
ret
=
StrStrA
(
NULL
,
NULL
);
...
@@ -1066,7 +1048,7 @@ static void test_StrStrW(void)
...
@@ -1066,7 +1048,7 @@ static void test_StrStrW(void)
LPWSTR
ret
;
LPWSTR
ret
;
int
i
;
int
i
;
/* Tests crash on Win
9x.
*/
/* Tests crash on Win
2k
*/
if
(
0
)
if
(
0
)
{
{
ret
=
StrStrW
(
NULL
,
NULL
);
ret
=
StrStrW
(
NULL
,
NULL
);
...
@@ -1114,7 +1096,7 @@ static void test_StrStrIA(void)
...
@@ -1114,7 +1096,7 @@ static void test_StrStrIA(void)
LPSTR
ret
;
LPSTR
ret
;
int
i
;
int
i
;
/* Tests crash on Win
9x/Win2k.
*/
/* Tests crash on Win
2k
*/
if
(
0
)
if
(
0
)
{
{
ret
=
StrStrIA
(
NULL
,
NULL
);
ret
=
StrStrIA
(
NULL
,
NULL
);
...
@@ -1170,7 +1152,7 @@ static void test_StrStrIW(void)
...
@@ -1170,7 +1152,7 @@ static void test_StrStrIW(void)
LPWSTR
ret
;
LPWSTR
ret
;
int
i
;
int
i
;
/* Tests crash on Win
9x/Win
2k */
/* Tests crash on Win2k */
if
(
0
)
if
(
0
)
{
{
ret
=
StrStrIW
(
NULL
,
NULL
);
ret
=
StrStrIW
(
NULL
,
NULL
);
...
...
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