test: change test suite name and testcase name

Because there are two testcases be the same name
in directory tests/kernel/sched/, so change one of
them to avoid confusion.

Signed-off-by: Ying ming <mingx.ying@intel.com>
This commit is contained in:
Ying ming 2021-11-01 13:13:09 +08:00 committed by Christopher Friedt
commit 56ef5aac52

View file

@ -139,7 +139,7 @@ K_THREAD_DEFINE(coop_thread2_id, 1024,
coop_thread2, 0, 0, 0,
K_PRIO_COOP(2), 0, 0);
void test_preempt(void)
void test_preempt_metairq(void)
{
/* Kick off meta-IRQ */
k_sem_give(&metairq_sem);
@ -152,7 +152,7 @@ void test_preempt(void)
void test_main(void)
{
ztest_test_suite(suite_preempt,
ztest_unit_test(test_preempt));
ztest_run_test_suite(suite_preempt);
ztest_test_suite(suite_preempt_metairq,
ztest_unit_test(test_preempt_metairq));
ztest_run_test_suite(suite_preempt_metairq);
}