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
aa80d167
Commit
aa80d167
authored
Dec 06, 2012
by
André Hentschel
Committed by
Alexandre Julliard
Dec 06, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust/tests: Unify test message in case of a FALSE return.
parent
b7a26db5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
crypt.c
dlls/wintrust/tests/crypt.c
+10
-10
No files found.
dlls/wintrust/tests/crypt.c
View file @
aa80d167
...
...
@@ -203,7 +203,7 @@ static void test_context(void)
/* NULL GUID */
ret
=
pCryptCATAdminAcquireContext
(
&
hca
,
NULL
,
0
);
ok
(
ret
,
"Expected success
\n
"
);
ok
(
ret
,
"Expected success
, got FALSE with %d
\n
"
,
GetLastError
()
);
ok
(
hca
!=
NULL
,
"Expected a context handle, got NULL
\n
"
);
/* All NULL */
...
...
@@ -273,23 +273,23 @@ static void test_context(void)
}
ret
=
pCryptCATAdminReleaseContext
(
hca
,
0
);
ok
(
ret
,
"Expected success
\n
"
);
ok
(
ret
,
"Expected success
, got FALSE with %d
\n
"
,
GetLastError
()
);
/* Correct context handle and GUID */
ret
=
pCryptCATAdminAcquireContext
(
&
hca
,
&
unknown
,
0
);
ok
(
ret
,
"Expected success
\n
"
);
ok
(
ret
,
"Expected success
, got FALSE with %d
\n
"
,
GetLastError
()
);
ok
(
hca
!=
NULL
,
"Expected a context handle, got NULL
\n
"
);
ret
=
pCryptCATAdminReleaseContext
(
hca
,
0
);
ok
(
ret
,
"Expected success
\n
"
);
ok
(
ret
,
"Expected success
, got FALSE with %d
\n
"
,
GetLastError
()
);
/* Flags not equal to 0 */
ret
=
pCryptCATAdminAcquireContext
(
&
hca
,
&
unknown
,
1
);
ok
(
ret
,
"Expected success
\n
"
);
ok
(
ret
,
"Expected success
, got FALSE with %d
\n
"
,
GetLastError
()
);
ok
(
hca
!=
NULL
,
"Expected a context handle, got NULL
\n
"
);
ret
=
pCryptCATAdminReleaseContext
(
hca
,
0
);
ok
(
ret
,
"Expected success
\n
"
);
ok
(
ret
,
"Expected success
, got FALSE with %d
\n
"
,
GetLastError
()
);
}
/* TODO: Check whether SHA-1 is the algorithm that's always used */
...
...
@@ -340,7 +340,7 @@ static void test_calchash(void)
ok
(
file
!=
INVALID_HANDLE_VALUE
,
"CreateFile failed %u
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
ret
=
pCryptCATAdminCalcHashFromFileHandle
(
file
,
&
hashsize
,
NULL
,
0
);
ok
(
ret
,
"Expected success
%u
\n
"
,
GetLastError
());
ok
(
ret
,
"Expected success
, got FALSE with %d
\n
"
,
GetLastError
());
ok
(
hashsize
==
20
,
" Expected a hash size of 20, got %d
\n
"
,
hashsize
);
ok
(
GetLastError
()
==
ERROR_INSUFFICIENT_BUFFER
,
"Expected ERROR_INSUFFICIENT_BUFFER, got %d
\n
"
,
GetLastError
());
...
...
@@ -354,7 +354,7 @@ static void test_calchash(void)
hash
=
HeapAlloc
(
GetProcessHeap
(),
0
,
hashsize
);
SetLastError
(
0xdeadbeef
);
ret
=
pCryptCATAdminCalcHashFromFileHandle
(
file
,
&
hashsize
,
hash
,
0
);
ok
(
ret
,
"Expected success
%u
\n
"
,
GetLastError
());
ok
(
ret
,
"Expected success
, got FALSE with %d
\n
"
,
GetLastError
());
ok
(
hashsize
==
20
,
" Expected a hash size of 20, got %d
\n
"
,
hashsize
);
ok
(
GetLastError
()
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
GetLastError
());
...
...
@@ -376,7 +376,7 @@ static void test_calchash(void)
hash
=
HeapAlloc
(
GetProcessHeap
(),
0
,
hashsize
);
SetLastError
(
0xdeadbeef
);
ret
=
pCryptCATAdminCalcHashFromFileHandle
(
file
,
&
hashsize
,
hash
,
0
);
ok
(
ret
,
"Expected success
\n
"
);
ok
(
ret
,
"Expected success
, got FALSE with %d
\n
"
,
GetLastError
()
);
ok
(
GetLastError
()
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
GetLastError
());
ok
(
hashsize
==
sizeof
(
expectedhash
)
&&
...
...
@@ -766,7 +766,7 @@ static void test_create_catalog_file(void)
ret
=
pCryptCATCDFClose
(
catcdf
);
todo_wine
{
ok
(
ret
,
"Expected success
\n
"
);
ok
(
ret
,
"Expected success
, got FALSE with %d
\n
"
,
GetLastError
()
);
ok
(
GetLastError
()
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
GetLastError
());
}
...
...
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