Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Linux-Kernel
libevl
Commits
f6587742
Commit
f6587742
authored
Dec 12, 2020
by
Philippe Gerum
Browse files
tests: thread-mode-bits: T_WOLI might be preset - take #2
Signed-off-by:
Philippe Gerum
<
rpm@xenomai.org
>
parent
57b78404
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/thread-mode-bits.c
View file @
f6587742
...
...
@@ -22,9 +22,11 @@ int main(int argc, char *argv[])
__Tcall_assert
(
tfd
,
evl_attach_self
(
"thread-mode-bits:%d"
,
getpid
()));
/* Starts with no mode bit set. */
/*
* Starts with no mode bit set, except maybe T_WOLI if
* CONFIG_EVL_DEBUG_WOLI is enabled.
*/
__Tcall_assert
(
ret
,
evl_set_thread_mode
(
tfd
,
T_WOSS
|
T_WOLI
|
T_WOSX
,
&
oldmask
));
/* T_WOLI may be preset if CONFIG_EVL_DEBUG_WOLI is set. */
__Texpr_assert
((
oldmask
&
~
T_WOLI
)
==
0
);
__Tcall_assert
(
ret
,
evl_set_thread_mode
(
tfd
,
0
,
&
oldmask
));
__Texpr_assert
(
oldmask
==
(
T_WOSS
|
T_WOLI
|
T_WOSX
|
T_HMSIG
));
...
...
@@ -41,7 +43,7 @@ int main(int argc, char *argv[])
"thread-mode-bits:%d"
,
getpid
()));
__Tcall_assert
(
ret
,
evl_set_thread_mode
(
tfd
,
T_WOSS
|
T_WOLI
|
T_WOSX
|
T_HMOBS
,
&
oldmask
));
__Texpr_assert
(
oldmask
==
0
);
__Texpr_assert
(
(
oldmask
&
~
T_WOLI
)
==
0
);
__Tcall_assert
(
ret
,
evl_set_thread_mode
(
tfd
,
T_HMSIG
,
&
oldmask
));
__Texpr_assert
(
oldmask
==
(
T_WOSS
|
T_WOLI
|
T_WOSX
|
T_HMOBS
));
__Tcall_assert
(
ret
,
evl_clear_thread_mode
(
tfd
,
T_HMSIG
|
T_HMOBS
,
&
oldmask
));
...
...
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