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
9c509234
Commit
9c509234
authored
May 07, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
May 07, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fix some exception tests to pass on Windows.
parent
fd7b277d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
exception.c
dlls/ntdll/tests/exception.c
+11
-2
No files found.
dlls/ntdll/tests/exception.c
View file @
9c509234
...
...
@@ -105,7 +105,7 @@ static const struct exception
/* test loading an invalid selector */
{
{
0xb8
,
0xef
,
0xbe
,
0x00
,
0x00
,
0x8e
,
0xe8
,
0xc3
},
/* mov $beef,%ax; mov %ax,%gs; ret */
5
,
2
,
STATUS_ACCESS_VIOLATION
,
2
,
{
0
,
0xbee8
}
},
5
,
2
,
STATUS_ACCESS_VIOLATION
,
2
,
{
0
,
0xbee8
}
},
/* 0xbee8 or 0xffffffff */
/* test accessing a zero selector */
{
{
0x06
,
0x31
,
0xc0
,
0x8e
,
0xc0
,
0x26
,
0xa1
,
0
,
0
,
0
,
0
,
0x07
,
0xc3
},
...
...
@@ -358,6 +358,14 @@ static DWORD handler( EXCEPTION_RECORD *rec, EXCEPTION_REGISTRATION_RECORD *fram
goto
skip_params
;
}
/* Seems that both 0xbee8 and 0xfffffffff can be returned in windows */
if
(
except
->
nb_params
==
2
&&
rec
->
NumberParameters
==
2
&&
except
->
params
[
1
]
==
0xbee8
&&
rec
->
ExceptionInformation
[
1
]
==
0xffffffff
&&
except
->
params
[
0
]
==
rec
->
ExceptionInformation
[
0
])
{
goto
skip_params
;
}
for
(
i
=
0
;
i
<
rec
->
NumberParameters
;
i
++
)
ok
(
rec
->
ExceptionInformation
[
i
]
==
except
->
params
[
i
],
"%u: Wrong parameter %d: %lx/%x
\n
"
,
...
...
@@ -485,7 +493,8 @@ static DWORD direction_flag_handler( EXCEPTION_RECORD *rec, EXCEPTION_REGISTRATI
#ifdef __GNUC__
unsigned
int
flags
;
__asm__
(
"pushfl; popl %0"
:
"=r"
(
flags
)
);
ok
(
!
(
flags
&
0x400
),
"eflags has DF bit set
\n
"
);
/* older windows versions don't clear DF properly so don't test */
if
(
flags
&
0x400
)
trace
(
"eflags has DF bit set
\n
"
);
#endif
ok
(
context
->
EFlags
&
0x400
,
"context eflags has DF bit cleared
\n
"
);
got_exception
++
;
...
...
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