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
c6530fee
Commit
c6530fee
authored
Jun 23, 2016
by
Piotr Caban
Committed by
Alexandre Julliard
Jun 23, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp90/tests: Remove unneeded casts.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2d4aac74
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
18 deletions
+18
-18
ios.c
dlls/msvcp90/tests/ios.c
+4
-4
string.c
dlls/msvcp90/tests/string.c
+14
-14
No files found.
dlls/msvcp90/tests/ios.c
View file @
c6530fee
...
...
@@ -1833,7 +1833,7 @@ static void test_istream_tellg(void)
if
(
tests
[
i
].
seekoff
!=
-
1
)
/* to test without seek */
call_func2_ptr_fpos
(
p_basic_istream_char_seekg_fpos
,
&
ss
.
base
.
base1
,
spos
);
rpos
=
(
fpos_int
*
)
call_func2
(
p_basic_istream_char_tellg
,
&
ss
.
base
.
base1
,
&
tpos
);
rpos
=
call_func2
(
p_basic_istream_char_tellg
,
&
ss
.
base
.
base1
,
&
tpos
);
ok
(
tests
[
i
].
telloff_ss
==
tpos
.
off
,
"wrong offset, expected = %ld found = %ld
\n
"
,
tests
[
i
].
telloff_ss
,
tpos
.
off
);
if
(
tests
[
i
].
telloff_ss
!=
-
1
&&
spos
.
off
!=
-
1
)
/* check if tell == seek but only if not hit EOF */
...
...
@@ -1860,7 +1860,7 @@ static void test_istream_tellg(void)
if
(
tests
[
i
].
seekoff
!=
-
1
)
/* to test without seek */
call_func2_ptr_fpos
(
p_basic_istream_wchar_seekg_fpos
,
&
wss
.
base
.
base1
,
spos
);
rpos
=
(
fpos_int
*
)
call_func2
(
p_basic_istream_wchar_tellg
,
&
wss
.
base
.
base1
,
&
tpos
);
rpos
=
call_func2
(
p_basic_istream_wchar_tellg
,
&
wss
.
base
.
base1
,
&
tpos
);
ok
(
tests
[
i
].
telloff_ss
==
tpos
.
off
,
"wrong offset, expected = %ld found = %ld
\n
"
,
tests
[
i
].
telloff_ss
,
tpos
.
off
);
if
(
tests
[
i
].
telloff_ss
!=
-
1
&&
spos
.
off
!=
-
1
)
/* check if tell == seek but only if not hit EOF */
...
...
@@ -1890,7 +1890,7 @@ static void test_istream_tellg(void)
if
(
tests
[
i
].
seekoff
!=
-
1
)
/* to test without seek */
call_func2_ptr_fpos
(
p_basic_istream_char_seekg_fpos
,
&
fs
.
base
.
base1
,
spos
);
rpos
=
(
fpos_int
*
)
call_func2
(
p_basic_istream_char_tellg
,
&
fs
.
base
.
base1
,
&
tpos
);
rpos
=
call_func2
(
p_basic_istream_char_tellg
,
&
fs
.
base
.
base1
,
&
tpos
);
ok
(
tests
[
i
].
tellpos
==
tpos
.
pos
,
"wrong filepos, expected = %s found = %s
\n
"
,
debugstr_longlong
(
tests
[
i
].
tellpos
),
debugstr_longlong
(
tpos
.
pos
));
...
...
@@ -1913,7 +1913,7 @@ static void test_istream_tellg(void)
if
(
tests
[
i
].
seekoff
!=
-
1
)
/* to test without seek */
call_func2_ptr_fpos
(
p_basic_istream_wchar_seekg_fpos
,
&
wfs
.
base
.
base1
,
spos
);
rpos
=
(
fpos_int
*
)
call_func2
(
p_basic_istream_wchar_tellg
,
&
wfs
.
base
.
base1
,
&
tpos
);
rpos
=
call_func2
(
p_basic_istream_wchar_tellg
,
&
wfs
.
base
.
base1
,
&
tpos
);
ok
(
tests
[
i
].
tellpos
==
tpos
.
pos
,
"wrong filepos, expected = %s found = %s
\n
"
,
debugstr_longlong
(
tests
[
i
].
tellpos
),
debugstr_longlong
(
tpos
.
pos
));
...
...
dlls/msvcp90/tests/string.c
View file @
c6530fee
...
...
@@ -409,9 +409,9 @@ static void test_basic_string_char_swap(void) {
strcpy
(
atmp1
,
"qwerty"
);
call_func2
(
p_basic_string_char_ctor_cstr
,
&
str1
,
atmp1
);
call_func2
(
p_basic_string_char_swap
,
&
str1
,
&
str1
);
ok
(
strcmp
(
atmp1
,
(
const
char
*
)
call_func1
(
p_basic_string_char_cstr
,
&
str1
))
==
0
,
"Invalid value of str1
\n
"
);
ok
(
strcmp
(
atmp1
,
call_func1
(
p_basic_string_char_cstr
,
&
str1
))
==
0
,
"Invalid value of str1
\n
"
);
call_func2
(
p_basic_string_char_swap
,
&
str1
,
&
str1
);
ok
(
strcmp
(
atmp1
,
(
const
char
*
)
call_func1
(
p_basic_string_char_cstr
,
&
str1
))
==
0
,
"Invalid value of str1
\n
"
);
ok
(
strcmp
(
atmp1
,
call_func1
(
p_basic_string_char_cstr
,
&
str1
))
==
0
,
"Invalid value of str1
\n
"
);
call_func1
(
p_basic_string_char_dtor
,
&
str1
);
/* str1 allocated, str2 local */
...
...
@@ -420,11 +420,11 @@ static void test_basic_string_char_swap(void) {
call_func2
(
p_basic_string_char_ctor_cstr
,
&
str1
,
atmp1
);
call_func2
(
p_basic_string_char_ctor_cstr
,
&
str2
,
atmp2
);
call_func2
(
p_basic_string_char_swap
,
&
str1
,
&
str2
);
ok
(
strcmp
(
atmp2
,
(
const
char
*
)
call_func1
(
p_basic_string_char_cstr
,
&
str1
))
==
0
,
"Invalid value of str1
\n
"
);
ok
(
strcmp
(
atmp1
,
(
const
char
*
)
call_func1
(
p_basic_string_char_cstr
,
&
str2
))
==
0
,
"Invalid value of str2
\n
"
);
ok
(
strcmp
(
atmp2
,
call_func1
(
p_basic_string_char_cstr
,
&
str1
))
==
0
,
"Invalid value of str1
\n
"
);
ok
(
strcmp
(
atmp1
,
call_func1
(
p_basic_string_char_cstr
,
&
str2
))
==
0
,
"Invalid value of str2
\n
"
);
call_func2
(
p_basic_string_char_swap
,
&
str1
,
&
str2
);
ok
(
strcmp
(
atmp1
,
(
const
char
*
)
call_func1
(
p_basic_string_char_cstr
,
&
str1
))
==
0
,
"Invalid value of str1
\n
"
);
ok
(
strcmp
(
atmp2
,
(
const
char
*
)
call_func1
(
p_basic_string_char_cstr
,
&
str2
))
==
0
,
"Invalid value of str2
\n
"
);
ok
(
strcmp
(
atmp1
,
call_func1
(
p_basic_string_char_cstr
,
&
str1
))
==
0
,
"Invalid value of str1
\n
"
);
ok
(
strcmp
(
atmp2
,
call_func1
(
p_basic_string_char_cstr
,
&
str2
))
==
0
,
"Invalid value of str2
\n
"
);
call_func1
(
p_basic_string_char_dtor
,
&
str1
);
call_func1
(
p_basic_string_char_dtor
,
&
str2
);
}
...
...
@@ -607,8 +607,8 @@ static void test_basic_string_char_replace(void) {
ret
=
call_func4
(
p_basic_string_char_replace_cstr
,
&
str
,
tests
[
i
].
off
,
tests
[
i
].
len
,
tests
[
i
].
replace
);
ok
(
ret
==
&
str
,
"str = %p ret = %p
\n
"
,
ret
,
&
str
);
ok
(
strcmp
(
tests
[
i
].
ret
,
(
const
char
*
)
call_func1
(
p_basic_string_char_cstr
,
ret
))
==
0
,
"str = %s ret = %s
\n
"
,
tests
[
i
].
ret
,
(
const
char
*
)
call_func1
(
p_basic_string_char_cstr
,
ret
));
ok
(
strcmp
(
tests
[
i
].
ret
,
call_func1
(
p_basic_string_char_cstr
,
ret
))
==
0
,
"str = %s ret = %s
\n
"
,
tests
[
i
].
ret
,
(
const
char
*
)
call_func1
(
p_basic_string_char_cstr
,
ret
));
call_func1
(
p_basic_string_char_dtor
,
&
str
);
}
...
...
@@ -694,9 +694,9 @@ static void test_basic_string_wchar_swap(void) {
mbstowcs
(
wtmp1
,
"qwerty"
,
32
);
call_func2
(
p_basic_string_wchar_ctor_cstr
,
&
str1
,
wtmp1
);
call_func2
(
p_basic_string_wchar_swap
,
&
str1
,
&
str1
);
ok
(
wcscmp
(
wtmp1
,
(
const
wchar_t
*
)
call_func1
(
p_basic_string_wchar_cstr
,
&
str1
))
==
0
,
"Invalid value of str1
\n
"
);
ok
(
wcscmp
(
wtmp1
,
call_func1
(
p_basic_string_wchar_cstr
,
&
str1
))
==
0
,
"Invalid value of str1
\n
"
);
call_func2
(
p_basic_string_wchar_swap
,
&
str1
,
&
str1
);
ok
(
wcscmp
(
wtmp1
,
(
const
wchar_t
*
)
call_func1
(
p_basic_string_wchar_cstr
,
&
str1
))
==
0
,
"Invalid value of str1
\n
"
);
ok
(
wcscmp
(
wtmp1
,
call_func1
(
p_basic_string_wchar_cstr
,
&
str1
))
==
0
,
"Invalid value of str1
\n
"
);
call_func1
(
p_basic_string_wchar_dtor
,
&
str1
);
/* str1 allocated, str2 local */
...
...
@@ -705,11 +705,11 @@ static void test_basic_string_wchar_swap(void) {
call_func2
(
p_basic_string_wchar_ctor_cstr
,
&
str1
,
wtmp1
);
call_func2
(
p_basic_string_wchar_ctor_cstr
,
&
str2
,
wtmp2
);
call_func2
(
p_basic_string_wchar_swap
,
&
str1
,
&
str2
);
ok
(
wcscmp
(
wtmp2
,
(
const
wchar_t
*
)
call_func1
(
p_basic_string_wchar_cstr
,
&
str1
))
==
0
,
"Invalid value of str1
\n
"
);
ok
(
wcscmp
(
wtmp1
,
(
const
wchar_t
*
)
call_func1
(
p_basic_string_wchar_cstr
,
&
str2
))
==
0
,
"Invalid value of str2
\n
"
);
ok
(
wcscmp
(
wtmp2
,
call_func1
(
p_basic_string_wchar_cstr
,
&
str1
))
==
0
,
"Invalid value of str1
\n
"
);
ok
(
wcscmp
(
wtmp1
,
call_func1
(
p_basic_string_wchar_cstr
,
&
str2
))
==
0
,
"Invalid value of str2
\n
"
);
call_func2
(
p_basic_string_wchar_swap
,
&
str1
,
&
str2
);
ok
(
wcscmp
(
wtmp1
,
(
const
wchar_t
*
)
call_func1
(
p_basic_string_wchar_cstr
,
&
str1
))
==
0
,
"Invalid value of str1
\n
"
);
ok
(
wcscmp
(
wtmp2
,
(
const
wchar_t
*
)
call_func1
(
p_basic_string_wchar_cstr
,
&
str2
))
==
0
,
"Invalid value of str2
\n
"
);
ok
(
wcscmp
(
wtmp1
,
call_func1
(
p_basic_string_wchar_cstr
,
&
str1
))
==
0
,
"Invalid value of str1
\n
"
);
ok
(
wcscmp
(
wtmp2
,
call_func1
(
p_basic_string_wchar_cstr
,
&
str2
))
==
0
,
"Invalid value of str2
\n
"
);
call_func1
(
p_basic_string_wchar_dtor
,
&
str1
);
call_func1
(
p_basic_string_wchar_dtor
,
&
str2
);
}
...
...
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