Skip to content

Commit

Permalink
updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajmund Szymański committed Mar 18, 2023
1 parent d9c12b8 commit f7bf457
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/test_signal/test_signal_1.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ static void test()
tsk_startFrom(&tsk0, proc0); ASSERT_ready(&tsk0);
tsk_yield();
tsk_yield();
sent = (unsigned)rand() % SIGLIM;
sent = (unsigned)rand() % SIG_LIMIT;
sig_give(&sig0, sent);
result = tsk_join(&tsk0); ASSERT_success(result);
}
Expand Down
2 changes: 1 addition & 1 deletion test/test_signal/test_signal_2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ static void test()
tsk_startFrom(&tsk0, proc0); ASSERT_ready(&tsk0);
tsk_yield();
tsk_yield();
sent = (unsigned)rand() % SIGLIM;
sent = (unsigned)rand() % SIG_LIMIT;
sig_give(&sig0, sent);
result = tsk_join(&tsk0); ASSERT_success(result);
}
Expand Down
2 changes: 1 addition & 1 deletion test/test_signal/test_signal_3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ static void test()
Tsk0.startFrom(proc0); ASSERT(!!Tsk0);
thisTask::yield();
thisTask::yield();
sent = (unsigned)rand() % SIGLIM;
sent = (unsigned)rand() % SIG_LIMIT;
Sig0.give(sent);
result = Tsk0.join(); ASSERT_success(result);
}
Expand Down
2 changes: 1 addition & 1 deletion test/test_task/test_task_signal_1.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ static void action( unsigned signo )

static void proc2()
{
sent = (unsigned)rand() % SIGLIM;
sent = (unsigned)rand() % SIG_LIMIT;
tsk_signal(tsk1, sent);
tsk_stop();
}
Expand Down
2 changes: 1 addition & 1 deletion test/test_task/test_task_signal_2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ static void action( unsigned signo )

static void proc2()
{
sent = (unsigned)rand() % SIGLIM;
sent = (unsigned)rand() % SIG_LIMIT;
tsk_signal(tsk1, sent);
tsk_stop();
}
Expand Down
2 changes: 1 addition & 1 deletion test/test_task/test_task_signal_3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ static void action( unsigned signo )

static void proc2()
{
sent = (unsigned)rand() % SIGLIM;
sent = (unsigned)rand() % SIG_LIMIT;
Tsk1.signal(sent);
thisTask::stop();
}
Expand Down

0 comments on commit f7bf457

Please sign in to comment.