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
61da3277
Commit
61da3277
authored
Feb 11, 2022
by
Piotr Caban
Committed by
Alexandre Julliard
Feb 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp90/tests: Build without -DWINE_NO_LONG_TYPES.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
dc4126e8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
13 deletions
+12
-13
Makefile.in
dlls/msvcp90/tests/Makefile.in
+0
-1
ios.c
dlls/msvcp90/tests/ios.c
+7
-7
misc.c
dlls/msvcp90/tests/misc.c
+4
-4
string.c
dlls/msvcp90/tests/string.c
+1
-1
No files found.
dlls/msvcp90/tests/Makefile.in
View file @
61da3277
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
TESTDLL
=
msvcp90.dll
C_SRCS
=
\
...
...
dlls/msvcp90/tests/ios.c
View file @
61da3277
...
...
@@ -566,7 +566,7 @@ static void __cdecl test_invalid_parameter_handler(const wchar_t *expression,
ok
(
function
==
NULL
,
"function is not NULL
\n
"
);
ok
(
file
==
NULL
,
"file is not NULL
\n
"
);
ok
(
line
==
0
,
"line = %u
\n
"
,
line
);
ok
(
arg
==
0
,
"arg = %
lx
\n
"
,
(
UINT_PTR
)
arg
);
ok
(
arg
==
0
,
"arg = %
Ix
\n
"
,
arg
);
invalid_parameter
++
;
}
...
...
@@ -1922,9 +1922,9 @@ static void test_istream_tellg(void)
call_func2_ptr_fpos
(
p_basic_istream_char_seekg_fpos
,
&
ss
.
base
.
base1
,
spos
);
rpos
=
call_func2
(
p_basic_istream_char_tellg
,
&
ss
.
base
.
base1
,
&
tpos
);
ok
(
tests
[
i
].
telloff_ss
==
tpos
.
off
,
"wrong offset, expected = %
ld found = %l
d
\n
"
,
tests
[
i
].
telloff_ss
,
tpos
.
off
);
ok
(
tests
[
i
].
telloff_ss
==
tpos
.
off
,
"wrong offset, expected = %
Id found = %I
d
\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 */
ok
(
spos
.
off
==
tpos
.
off
,
"tell doesn't match seek, seek = %
ld tell = %l
d
\n
"
,
spos
.
off
,
tpos
.
off
);
ok
(
spos
.
off
==
tpos
.
off
,
"tell doesn't match seek, seek = %
Id tell = %I
d
\n
"
,
spos
.
off
,
tpos
.
off
);
ok
(
rpos
==
&
tpos
,
"wrong return fpos, expected = %p found = %p
\n
"
,
rpos
,
&
tpos
);
ok
(
tpos
.
pos
==
0
,
"wrong position, expected = 0 found = %s
\n
"
,
wine_dbgstr_longlong
(
tpos
.
pos
));
ok
(
tpos
.
state
==
0
,
"wrong state, expected = 0 found = %d
\n
"
,
tpos
.
state
);
...
...
@@ -1953,9 +1953,9 @@ static void test_istream_tellg(void)
call_func2_ptr_fpos
(
p_basic_istream_wchar_seekg_fpos
,
&
wss
.
base
.
base1
,
spos
);
rpos
=
call_func2
(
p_basic_istream_wchar_tellg
,
&
wss
.
base
.
base1
,
&
tpos
);
ok
(
tests
[
i
].
telloff_ss
==
tpos
.
off
,
"wrong offset, expected = %
ld found = %l
d
\n
"
,
tests
[
i
].
telloff_ss
,
tpos
.
off
);
ok
(
tests
[
i
].
telloff_ss
==
tpos
.
off
,
"wrong offset, expected = %
Id found = %I
d
\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 */
ok
(
spos
.
off
==
tpos
.
off
,
"tell doesn't match seek, seek = %
ld tell = %l
d
\n
"
,
spos
.
off
,
tpos
.
off
);
ok
(
spos
.
off
==
tpos
.
off
,
"tell doesn't match seek, seek = %
Id tell = %I
d
\n
"
,
spos
.
off
,
tpos
.
off
);
ok
(
rpos
==
&
tpos
,
"wrong return fpos, expected = %p found = %p
\n
"
,
rpos
,
&
tpos
);
ok
(
tpos
.
pos
==
0
,
"wrong position, expected = 0 found = %s
\n
"
,
wine_dbgstr_longlong
(
tpos
.
pos
));
ok
(
tpos
.
state
==
0
,
"wrong state, expected = 0 found = %d
\n
"
,
tpos
.
state
);
...
...
@@ -1990,7 +1990,7 @@ static void test_istream_tellg(void)
ok
(
tests
[
i
].
tellpos
==
tpos
.
pos
,
"wrong filepos, expected = %s found = %s
\n
"
,
wine_dbgstr_longlong
(
tests
[
i
].
tellpos
),
wine_dbgstr_longlong
(
tpos
.
pos
));
ok
(
rpos
==
&
tpos
,
"wrong return fpos, expected = %p found = %p
\n
"
,
rpos
,
&
tpos
);
ok
(
tpos
.
off
==
tests
[
i
].
telloff_fs
,
"wrong offset, expected %
ld found %l
d
\n
"
,
tests
[
i
].
telloff_fs
,
tpos
.
off
);
ok
(
tpos
.
off
==
tests
[
i
].
telloff_fs
,
"wrong offset, expected %
Id found %I
d
\n
"
,
tests
[
i
].
telloff_fs
,
tpos
.
off
);
ok
(
tpos
.
state
==
0
,
"wrong state, expected = 0 found = %d
\n
"
,
tpos
.
state
);
call_func1
(
p_basic_fstream_char_vbase_dtor
,
&
fs
);
...
...
@@ -2013,7 +2013,7 @@ static void test_istream_tellg(void)
ok
(
tests
[
i
].
tellpos
==
tpos
.
pos
,
"wrong filepos, expected = %s found = %s
\n
"
,
wine_dbgstr_longlong
(
tests
[
i
].
tellpos
),
wine_dbgstr_longlong
(
tpos
.
pos
));
ok
(
rpos
==
&
tpos
,
"wrong return fpos, expected = %p found = %p
\n
"
,
rpos
,
&
tpos
);
ok
(
tpos
.
off
==
tests
[
i
].
telloff_fs
,
"wrong offset, expected %
ld found %l
d
\n
"
,
tests
[
i
].
telloff_fs
,
tpos
.
off
);
ok
(
tpos
.
off
==
tests
[
i
].
telloff_fs
,
"wrong offset, expected %
Id found %I
d
\n
"
,
tests
[
i
].
telloff_fs
,
tpos
.
off
);
ok
(
tpos
.
state
==
0
,
"wrong state, expected = 0 found = %d
\n
"
,
tpos
.
state
);
call_func1
(
p_basic_fstream_wchar_vbase_dtor
,
&
wfs
);
...
...
dlls/msvcp90/tests/misc.c
View file @
61da3277
...
...
@@ -167,7 +167,7 @@ static void __cdecl test_invalid_parameter_handler(const wchar_t *expression,
ok
(
function
==
NULL
,
"function is not NULL
\n
"
);
ok
(
file
==
NULL
,
"file is not NULL
\n
"
);
ok
(
line
==
0
,
"line = %u
\n
"
,
line
);
ok
(
arg
==
0
,
"arg = %
lx
\n
"
,
(
UINT_PTR
)
arg
);
ok
(
arg
==
0
,
"arg = %
Ix
\n
"
,
arg
);
invalid_parameter
++
;
}
...
...
@@ -585,7 +585,7 @@ static void test__Getctype(void)
_locale_t
locale
;
ret
=
p__Getctype
();
ok
(
ret
.
handle
==
0
,
"ret.handle = %d
\n
"
,
ret
.
handle
);
ok
(
ret
.
handle
==
0
,
"ret.handle = %
l
d
\n
"
,
ret
.
handle
);
ok
(
ret
.
page
==
0
,
"ret.page = %d
\n
"
,
ret
.
page
);
ok
(
ret
.
delfl
==
1
,
"ret.delfl = %d
\n
"
,
ret
.
delfl
);
ok
(
ret
.
table
[
0
]
==
32
,
"ret.table[0] = %d
\n
"
,
ret
.
table
[
0
]);
...
...
@@ -595,7 +595,7 @@ static void test__Getctype(void)
locale
->
locinfo
->
lc_handle
[
LC_COLLATE
]
=
0x1234567
;
p__free_locale
(
locale
);
ret
=
p__Getctype
();
ok
(
ret
.
handle
==
0x1234567
,
"ret.handle = %d
\n
"
,
ret
.
handle
);
ok
(
ret
.
handle
==
0x1234567
,
"ret.handle = %
l
d
\n
"
,
ret
.
handle
);
ok
(
ret
.
page
==
0
,
"ret.page = %d
\n
"
,
ret
.
page
);
ok
(
ret
.
delfl
==
1
,
"ret.delfl = %d
\n
"
,
ret
.
delfl
);
ok
(
ret
.
table
[
0
]
==
32
,
"ret.table[0] = %d
\n
"
,
ret
.
table
[
0
]);
...
...
@@ -619,7 +619,7 @@ static void test__Getcoll(void)
locale
->
locinfo
->
lc_handle
[
LC_COLLATE
]
=
0x7654321
;
p__free_locale
(
locale
);
call__Getcoll
(
ret
);
ok
(
ret
.
handle
==
0x7654321
,
"ret.handle = %x
\n
"
,
ret
.
handle
);
ok
(
ret
.
handle
==
0x7654321
,
"ret.handle = %
l
x
\n
"
,
ret
.
handle
);
ok
(
ret
.
page
==
0
,
"ret.page = %x
\n
"
,
ret
.
page
);
}
...
...
dlls/msvcp90/tests/string.c
View file @
61da3277
...
...
@@ -103,7 +103,7 @@ static void __cdecl test_invalid_parameter_handler(const wchar_t *expression,
ok
(
function
==
NULL
,
"function is not NULL
\n
"
);
ok
(
file
==
NULL
,
"file is not NULL
\n
"
);
ok
(
line
==
0
,
"line = %u
\n
"
,
line
);
ok
(
arg
==
0
,
"arg = %
lx
\n
"
,
(
UINT_PTR
)
arg
);
ok
(
arg
==
0
,
"arg = %
Ix
\n
"
,
arg
);
invalid_parameter
++
;
}
...
...
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