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
ee778749
Commit
ee778749
authored
Jul 03, 2017
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Jul 04, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi/tests: Use standard wine_dbgstr_longlong.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
97b6221c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
string.c
dlls/shlwapi/tests/string.c
+14
-14
No files found.
dlls/shlwapi/tests/string.c
View file @
ee778749
...
...
@@ -570,8 +570,8 @@ static void test_StrToInt64ExA(void)
ok
(
!
bRet
||
return_val
!=
-
1
,
"No result returned from '%s'
\n
"
,
result
->
string
);
if
(
bRet
)
ok
(
return_val
==
result
->
str_to_int64_ex
,
"converted '%s' wrong (%
08x%08x
)
\n
"
,
result
->
string
,
(
DWORD
)(
return_val
>>
32
),
(
DWORD
)
return_val
);
ok
(
return_val
==
result
->
str_to_int64_ex
,
"converted '%s' wrong (%
s
)
\n
"
,
result
->
string
,
wine_dbgstr_longlong
(
return_val
)
);
result
++
;
}
...
...
@@ -583,8 +583,8 @@ static void test_StrToInt64ExA(void)
ok
(
!
bRet
||
return_val
!=
-
1
,
"No result returned from '%s'
\n
"
,
result
->
string
);
if
(
bRet
)
ok
(
return_val
==
result
->
str_to_int64_hex
,
"converted '%s' wrong (%
08x%08x
)
\n
"
,
result
->
string
,
(
DWORD
)(
return_val
>>
32
),
(
DWORD
)
return_val
);
ok
(
return_val
==
result
->
str_to_int64_hex
,
"converted '%s' wrong (%
s
)
\n
"
,
result
->
string
,
wine_dbgstr_longlong
(
return_val
)
);
result
++
;
}
}
...
...
@@ -610,8 +610,8 @@ static void test_StrToInt64ExW(void)
ok
(
!
bRet
||
return_val
!=
-
1
,
"No result returned from '%s'
\n
"
,
result
->
string
);
if
(
bRet
)
ok
(
return_val
==
result
->
str_to_int64_ex
,
"converted '%s' wrong (%
08x%08x
)
\n
"
,
result
->
string
,
(
DWORD
)(
return_val
>>
32
),
(
DWORD
)
return_val
);
ok
(
return_val
==
result
->
str_to_int64_ex
,
"converted '%s' wrong (%
s
)
\n
"
,
result
->
string
,
wine_dbgstr_longlong
(
return_val
)
);
result
++
;
}
...
...
@@ -624,8 +624,8 @@ static void test_StrToInt64ExW(void)
ok
(
!
bRet
||
return_val
!=
-
1
,
"No result returned from '%s'
\n
"
,
result
->
string
);
if
(
bRet
)
ok
(
return_val
==
result
->
str_to_int64_hex
,
"converted '%s' wrong (%
08x%08x
)
\n
"
,
result
->
string
,
(
DWORD
)(
return_val
>>
32
),
(
DWORD
)
return_val
);
ok
(
return_val
==
result
->
str_to_int64_hex
,
"converted '%s' wrong (%
s
)
\n
"
,
result
->
string
,
wine_dbgstr_longlong
(
return_val
)
);
result
++
;
}
}
...
...
@@ -672,8 +672,8 @@ static void test_StrFormatByteSize64A(void)
pStrFormatByteSize64A
(
result
->
value
,
szBuff
,
256
);
ok
(
!
strcmp
(
result
->
byte_size_64
,
szBuff
),
"Formatted %
x%08x
wrong: got %s, expected %s
\n
"
,
(
LONG
)(
result
->
value
>>
32
),
(
LONG
)
result
->
value
,
szBuff
,
result
->
byte_size_64
);
"Formatted %
s
wrong: got %s, expected %s
\n
"
,
wine_dbgstr_longlong
(
result
->
value
)
,
szBuff
,
result
->
byte_size_64
);
result
++
;
}
...
...
@@ -696,8 +696,8 @@ static void test_StrFormatKBSizeW(void)
pStrFormatKBSizeW
(
result
->
value
,
szBuffW
,
256
);
WideCharToMultiByte
(
CP_ACP
,
0
,
szBuffW
,
-
1
,
szBuff
,
sizeof
(
szBuff
)
/
sizeof
(
WCHAR
),
NULL
,
NULL
);
ok
(
!
strcmp
(
result
->
kb_size
,
szBuff
),
"Formatted %
x%08x
wrong: got %s, expected %s
\n
"
,
(
LONG
)(
result
->
value
>>
32
),
(
LONG
)
result
->
value
,
szBuff
,
result
->
kb_size
);
ok
(
!
strcmp
(
result
->
kb_size
,
szBuff
),
"Formatted %
s
wrong: got %s, expected %s
\n
"
,
wine_dbgstr_longlong
(
result
->
value
)
,
szBuff
,
result
->
kb_size
);
result
++
;
}
}
...
...
@@ -721,8 +721,8 @@ static void test_StrFormatKBSizeA(void)
* 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
);
"Formatted %
s
wrong: got %s, expected %s
\n
"
,
wine_dbgstr_longlong
(
result
->
value
)
,
szBuff
,
result
->
kb_size
);
result
++
;
}
}
...
...
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