Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
aa80d167
Commit
aa80d167
authored
12 years ago
by
André Zwing
Committed by
Alexandre Julliard
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
wintrust/tests: Unify test message in case of a FALSE return.
parent
b7a26db5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/wintrust/tests/crypt.c
+10
-10
10 additions, 10 deletions
dlls/wintrust/tests/crypt.c
with
10 additions
and
10 deletions
dlls/wintrust/tests/crypt.c
+
10
−
10
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
());
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment