mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
testing/ostest/signest.c: fix the range of signals
Note that MAX_SIGNO is a valid signal number.
This commit is contained in:
parent
54a571fc92
commit
365869b0a2
1 changed files with 5 additions and 5 deletions
|
|
@ -143,7 +143,7 @@ static FAR void *waiter_main(FAR void *arg)
|
|||
act.sa_flags = 0;
|
||||
|
||||
sigemptyset(&act.sa_mask);
|
||||
for (i = 1; i < MAX_SIGNO; i += 2)
|
||||
for (i = 1; i <= MAX_SIGNO; i += 2)
|
||||
{
|
||||
if (signest_catchable(i))
|
||||
{
|
||||
|
|
@ -151,7 +151,7 @@ static FAR void *waiter_main(FAR void *arg)
|
|||
}
|
||||
}
|
||||
|
||||
for (i = 1; i < MAX_SIGNO; i++)
|
||||
for (i = 1; i <= MAX_SIGNO; i++)
|
||||
{
|
||||
if (signest_catchable(i))
|
||||
{
|
||||
|
|
@ -322,7 +322,7 @@ void signest_test(void)
|
|||
|
||||
for (i = 0; i < 10; i++)
|
||||
{
|
||||
for (j = 1; j < MAX_SIGNO; j += 2)
|
||||
for (j = 1; j + 1 <= MAX_SIGNO; j += 2)
|
||||
{
|
||||
if (signest_catchable(j))
|
||||
{
|
||||
|
|
@ -377,7 +377,7 @@ void signest_test(void)
|
|||
|
||||
for (i = 0; i < 10; i++)
|
||||
{
|
||||
for (j = 1; j < MAX_SIGNO; j += 2)
|
||||
for (j = 1; j + 1 <= MAX_SIGNO; j += 2)
|
||||
{
|
||||
/* Odd then even */
|
||||
|
||||
|
|
@ -439,7 +439,7 @@ void signest_test(void)
|
|||
|
||||
for (i = 0; i < 10; i++)
|
||||
{
|
||||
for (j = 1; j < MAX_SIGNO; j += 2)
|
||||
for (j = 1; j + 1 <= MAX_SIGNO; j += 2)
|
||||
{
|
||||
/* Odd then even */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue