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
d989e92c
Commit
d989e92c
authored
Mar 05, 2013
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 05, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Added __pxcptinfoptrs tests.
parent
14a81773
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
signal.c
dlls/msvcrt/tests/signal.c
+32
-0
No files found.
dlls/msvcrt/tests/signal.c
View file @
d989e92c
...
...
@@ -26,6 +26,13 @@ static int test_value = 0;
static
void
__cdecl
sighandler
(
int
signum
)
{
void
**
ret
=
__pxcptinfoptrs
();
ok
(
ret
!=
NULL
,
"ret = NULL
\n
"
);
if
(
signum
==
SIGABRT
)
ok
(
*
ret
==
(
void
*
)
0xdeadbeef
,
"*ret = %p
\n
"
,
*
ret
);
else
if
(
signum
==
SIGSEGV
)
ok
(
*
ret
==
NULL
,
"*ret = %p
\n
"
,
*
ret
);
++
test_value
;
}
...
...
@@ -42,7 +49,32 @@ static void test_signal(void)
ok
(
test_value
==
1
,
"SIGBREAK handler not invoked
\n
"
);
}
static
void
test___pxcptinfoptrs
(
void
)
{
void
**
ret
=
__pxcptinfoptrs
();
int
res
;
ok
(
ret
!=
NULL
,
"ret == NULL
\n
"
);
ok
(
*
ret
==
NULL
,
"*ret != NULL
\n
"
);
test_value
=
0
;
*
ret
=
(
void
*
)
0xdeadbeef
;
signal
(
SIGSEGV
,
sighandler
);
res
=
raise
(
SIGSEGV
);
ok
(
res
==
0
,
"failed to raise SIGSEGV
\n
"
);
ok
(
*
ret
==
(
void
*
)
0xdeadbeef
,
"*ret = %p
\n
"
,
*
ret
);
signal
(
SIGABRT
,
sighandler
);
res
=
raise
(
SIGABRT
);
ok
(
res
==
0
,
"failed to raise SIGBREAK
\n
"
);
ok
(
*
ret
==
(
void
*
)
0xdeadbeef
,
"*ret = %p
\n
"
,
*
ret
);
ok
(
test_value
==
2
,
"test_value = %d
\n
"
,
test_value
);
}
START_TEST
(
signal
)
{
test_signal
();
test___pxcptinfoptrs
();
}
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