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
56681b53
Commit
56681b53
authored
Feb 24, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 24, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp/tests: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2596bd57
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
Makefile.in
dlls/dbghelp/tests/Makefile.in
+0
-1
dbghelp.c
dlls/dbghelp/tests/dbghelp.c
+5
-5
No files found.
dlls/dbghelp/tests/Makefile.in
View file @
56681b53
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
TESTDLL
=
dbghelp.dll
IMPORTS
=
dbghelp
...
...
dlls/dbghelp/tests/dbghelp.c
View file @
56681b53
...
...
@@ -26,7 +26,7 @@
static
DWORD
CALLBACK
stack_walk_thread
(
void
*
arg
)
{
DWORD
count
=
SuspendThread
(
GetCurrentThread
());
ok
(
!
count
,
"got %d
\n
"
,
count
);
ok
(
!
count
,
"got %
l
d
\n
"
,
count
);
return
0
;
}
...
...
@@ -86,7 +86,7 @@ static void test_stack_walk(void)
/* first invocation just calculates the return address */
ret
=
StackWalk64
(
machine
,
GetCurrentProcess
(),
thread
,
&
frame
,
&
ctx
,
NULL
,
SymFunctionTableAccess64
,
SymGetModuleBase64
,
NULL
);
ok
(
ret
,
"StackWalk64() failed: %u
\n
"
,
GetLastError
());
ok
(
ret
,
"StackWalk64() failed: %
l
u
\n
"
,
GetLastError
());
ok
(
frame
.
AddrPC
.
Offset
==
frame0
.
AddrPC
.
Offset
,
"expected %s, got %s
\n
"
,
wine_dbgstr_longlong
(
frame0
.
AddrPC
.
Offset
),
wine_dbgstr_longlong
(
frame
.
AddrPC
.
Offset
));
...
...
@@ -102,7 +102,7 @@ static void test_stack_walk(void)
ret
=
StackWalk64
(
machine
,
GetCurrentProcess
(),
thread
,
&
frame
,
&
ctx
,
NULL
,
SymFunctionTableAccess64
,
SymGetModuleBase64
,
NULL
);
ok
(
ret
,
"StackWalk64() failed: %u
\n
"
,
GetLastError
());
ok
(
ret
,
"StackWalk64() failed: %
l
u
\n
"
,
GetLastError
());
addr
=
(
void
*
)(
DWORD_PTR
)
frame
.
AddrPC
.
Offset
;
...
...
@@ -199,11 +199,11 @@ START_TEST(dbghelp)
SetEnvironmentVariableA
(
"_NT_ALT_SYMBOL_PATH"
,
NULL
);
ret
=
SymInitialize
(
GetCurrentProcess
(),
NULL
,
TRUE
);
ok
(
ret
,
"got error %u
\n
"
,
GetLastError
());
ok
(
ret
,
"got error %
l
u
\n
"
,
GetLastError
());
test_stack_walk
();
test_search_path
();
ret
=
SymCleanup
(
GetCurrentProcess
());
ok
(
ret
,
"got error %u
\n
"
,
GetLastError
());
ok
(
ret
,
"got error %
l
u
\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