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
83ec2f4f
Commit
83ec2f4f
authored
Dec 02, 2009
by
Peter Rosin
Committed by
Alexandre Julliard
Dec 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add test to check if signal(SIGBREAK, ...) works (todo_wine).
parent
3e28e4ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
0 deletions
+51
-0
Makefile.in
dlls/msvcrt/tests/Makefile.in
+1
-0
signal.c
dlls/msvcrt/tests/signal.c
+50
-0
No files found.
dlls/msvcrt/tests/Makefile.in
View file @
83ec2f4f
...
...
@@ -18,6 +18,7 @@ CTESTS = \
heap.c
\
printf.c
\
scanf.c
\
signal.c
\
string.c
\
time.c
...
...
dlls/msvcrt/tests/signal.c
0 → 100644
View file @
83ec2f4f
/*
* Unit test suite for signal function.
*
* Copyright 2009 Peter Rosin
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "wine/test.h"
#include <winbase.h>
#include <signal.h>
static
int
test_value
=
0
;
typedef
void
(
sighandler_type
)(
int
);
static
void
sighandler
(
int
signum
)
{
++
test_value
;
}
static
void
test_signal
(
void
)
{
sighandler_type
*
old
;
int
res
;
old
=
signal
(
SIGBREAK
,
sighandler
);
todo_wine
ok
(
old
!=
SIG_ERR
,
"Failed to install signal handler for SIGBREAK
\n
"
);
test_value
=
0
;
res
=
raise
(
SIGBREAK
);
todo_wine
ok
(
res
==
0
,
"Failed to raise SIGBREAK
\n
"
);
todo_wine
ok
(
test_value
==
1
,
"SIGBREAK handler not invoked
\n
"
);
}
START_TEST
(
signal
)
{
test_signal
();
}
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