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
f63138d0
Commit
f63138d0
authored
Nov 13, 2019
by
Piotr Caban
Committed by
Alexandre Julliard
Nov 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ucrtbase: Set invalid parameter handler for all misc tests.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
97e47fe0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
misc.c
dlls/ucrtbase/tests/misc.c
+3
-7
No files found.
dlls/ucrtbase/tests/misc.c
View file @
f63138d0
...
...
@@ -430,6 +430,9 @@ static void test_invalid_parameter_handler(void)
ret
=
p__set_invalid_parameter_handler
(
NULL
);
ok
(
ret
==
global_invalid_parameter_handler
,
"ret = %p
\n
"
,
ret
);
ret
=
p__set_invalid_parameter_handler
(
global_invalid_parameter_handler
);
ok
(
!
ret
,
"ret != NULL
\n
"
);
}
static
void
test__get_narrow_winmain_command_line
(
char
*
path
)
...
...
@@ -539,8 +542,6 @@ static void test__sopen_dispatch(void)
p__close
(
fd
);
unlink
(
tempf
);
p__set_invalid_parameter_handler
(
global_invalid_parameter_handler
);
SET_EXPECT
(
global_invalid_parameter_handler
);
fd
=
0
;
ret
=
p_sopen_dispatch
(
tempf
,
_O_CREAT
,
_SH_DENYWR
,
0xff
,
&
fd
,
1
);
...
...
@@ -553,8 +554,6 @@ static void test__sopen_dispatch(void)
unlink
(
tempf
);
}
p__set_invalid_parameter_handler
(
NULL
);
free
(
tempf
);
}
...
...
@@ -578,8 +577,6 @@ static void test__sopen_s(void)
p__close
(
fd
);
unlink
(
tempf
);
p__set_invalid_parameter_handler
(
global_invalid_parameter_handler
);
/* _sopen_s() invokes invalid parameter handler on invalid pmode */
SET_EXPECT
(
global_invalid_parameter_handler
);
fd
=
0
;
...
...
@@ -587,7 +584,6 @@ static void test__sopen_s(void)
ok
(
ret
==
EINVAL
,
"got %d
\n
"
,
ret
);
ok
(
fd
==
-
1
,
"got fd %d
\n
"
,
fd
);
CHECK_CALLED
(
global_invalid_parameter_handler
);
p__set_invalid_parameter_handler
(
NULL
);
free
(
tempf
);
}
...
...
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