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
d0e02b67
Commit
d0e02b67
authored
Jan 30, 2024
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix some test failures on ARM platforms.
parent
982e3230
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
debugger.c
dlls/kernel32/tests/debugger.c
+8
-3
No files found.
dlls/kernel32/tests/debugger.c
View file @
d0e02b67
...
@@ -1151,7 +1151,7 @@ static void test_debug_loop_wow64(void)
...
@@ -1151,7 +1151,7 @@ static void test_debug_loop_wow64(void)
if
(
!
pGetMappedFileNameW
(
pi
.
hProcess
,
ev
.
u
.
LoadDll
.
lpBaseOfDll
,
buffer
,
ARRAY_SIZE
(
buffer
)
))
buffer
[
0
]
=
L'\0'
;
if
(
!
pGetMappedFileNameW
(
pi
.
hProcess
,
ev
.
u
.
LoadDll
.
lpBaseOfDll
,
buffer
,
ARRAY_SIZE
(
buffer
)
))
buffer
[
0
]
=
L'\0'
;
if
((
p
=
wcsrchr
(
buffer
,
'\\'
)))
p
++
;
if
((
p
=
wcsrchr
(
buffer
,
'\\'
)))
p
++
;
else
p
=
buffer
;
else
p
=
buffer
;
if
(
!
memcmp
(
p
,
L"wow64"
,
5
*
sizeof
(
WCHAR
)
))
if
(
!
wcsnicmp
(
p
,
L"wow64"
,
5
)
||
!
wcsicmp
(
p
,
L"xtajit.dll"
))
{
{
/* on Win10, wow64cpu's load dll event is received after first exception */
/* on Win10, wow64cpu's load dll event is received after first exception */
ok
(
bpwx_order
==
0
,
"loaddll for wow64 DLLs should appear before exception
\n
"
);
ok
(
bpwx_order
==
0
,
"loaddll for wow64 DLLs should appear before exception
\n
"
);
...
@@ -1700,7 +1700,7 @@ static void test_debugger(const char *argv0)
...
@@ -1700,7 +1700,7 @@ static void test_debugger(const char *argv0)
expect_event
(
&
ctx
,
EXIT_THREAD_DEBUG_EVENT
);
expect_event
(
&
ctx
,
EXIT_THREAD_DEBUG_EVENT
);
}
}
else
win_skip
(
"loop_code not supported on this architecture
\n
"
);
else
todo_wine
win_skip
(
"loop_code not supported on this architecture
\n
"
);
if
(
sizeof
(
call_debug_service_code
)
>
1
)
if
(
sizeof
(
call_debug_service_code
)
>
1
)
{
{
...
@@ -1726,7 +1726,7 @@ static void test_debugger(const char *argv0)
...
@@ -1726,7 +1726,7 @@ static void test_debugger(const char *argv0)
if
(
sizeof
(
void
*
)
==
4
&&
ctx
.
ev
.
dwDebugEventCode
==
EXCEPTION_DEBUG_EVENT
)
next_event
(
&
ctx
,
WAIT_EVENT_TIMEOUT
);
if
(
sizeof
(
void
*
)
==
4
&&
ctx
.
ev
.
dwDebugEventCode
==
EXCEPTION_DEBUG_EVENT
)
next_event
(
&
ctx
,
WAIT_EVENT_TIMEOUT
);
ok
(
ctx
.
ev
.
dwDebugEventCode
==
EXIT_THREAD_DEBUG_EVENT
,
"unexpected debug event %lu
\n
"
,
ctx
.
ev
.
dwDebugEventCode
);
ok
(
ctx
.
ev
.
dwDebugEventCode
==
EXIT_THREAD_DEBUG_EVENT
,
"unexpected debug event %lu
\n
"
,
ctx
.
ev
.
dwDebugEventCode
);
}
}
else
win_skip
(
"call_debug_service_code not supported on this architecture
\n
"
);
else
todo_wine
win_skip
(
"call_debug_service_code not supported on this architecture
\n
"
);
if
(
skip_reply_later
)
if
(
skip_reply_later
)
win_skip
(
"Skipping unsupported DBG_REPLY_LATER tests
\n
"
);
win_skip
(
"Skipping unsupported DBG_REPLY_LATER tests
\n
"
);
...
@@ -2411,6 +2411,11 @@ START_TEST(debugger)
...
@@ -2411,6 +2411,11 @@ START_TEST(debugger)
pDbgUiGetThreadDebugObject
=
(
void
*
)
GetProcAddress
(
ntdll
,
"DbgUiGetThreadDebugObject"
);
pDbgUiGetThreadDebugObject
=
(
void
*
)
GetProcAddress
(
ntdll
,
"DbgUiGetThreadDebugObject"
);
pDbgUiSetThreadDebugObject
=
(
void
*
)
GetProcAddress
(
ntdll
,
"DbgUiSetThreadDebugObject"
);
pDbgUiSetThreadDebugObject
=
(
void
*
)
GetProcAddress
(
ntdll
,
"DbgUiSetThreadDebugObject"
);
#ifdef __arm__
/* mask thumb bit for address comparisons */
pDbgBreakPoint
=
(
void
*
)((
ULONG_PTR
)
pDbgBreakPoint
&
~
1
);
#endif
if
(
pIsWow64Process
)
pIsWow64Process
(
GetCurrentProcess
(),
&
is_wow64
);
if
(
pIsWow64Process
)
pIsWow64Process
(
GetCurrentProcess
(),
&
is_wow64
);
myARGC
=
winetest_get_mainargs
(
&
myARGV
);
myARGC
=
winetest_get_mainargs
(
&
myARGV
);
...
...
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