testsuites/smptests: Address unused parameter warnings

Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
This commit is contained in:
Joel Sherrill
2025-10-10 14:29:36 -05:00
committed by Gedare Bloom
parent d3370aa627
commit abe86999de
58 changed files with 391 additions and 2 deletions

View File

@@ -47,6 +47,8 @@ rtems_task Init(
rtems_task_argument argument
)
{
(void) argument;
uint32_t i;
char ch;
uint32_t cpu_self;

View File

@@ -38,6 +38,8 @@ rtems_task Test_task(
rtems_task_argument task_index
)
{
(void) task_index;
uint32_t cpu_num;
char name[5];
char *p;

View File

@@ -48,6 +48,8 @@ rtems_task Init(
rtems_task_argument argument
)
{
(void) argument;
int i;
char ch;
uint32_t cpu_num;

View File

@@ -65,6 +65,8 @@ rtems_task Init(
rtems_task_argument argument
)
{
(void) argument;
uint32_t i;
char ch = '0';
rtems_id id;

View File

@@ -56,6 +56,8 @@ rtems_task Test_task(
rtems_task_argument argument
)
{
(void) argument;
while (!init_task_done) {
/* Wait */
}
@@ -68,6 +70,8 @@ rtems_task Init(
rtems_task_argument argument
)
{
(void) argument;
uint32_t i;
char ch;
uint32_t cpu_num;

View File

@@ -57,6 +57,8 @@ rtems_task Test_task(
rtems_task_argument argument
)
{
(void) argument;
uint32_t cpu_num;
rtems_status_code sc;
char name[5];
@@ -96,6 +98,9 @@ static rtems_timer_service_routine TimerMethod(
void *arg
)
{
(void) timer;
(void) arg;
/*
* Set flag and release the semaphore, allowing the blocked tasks to start.
*/
@@ -108,6 +113,8 @@ rtems_task Init(
rtems_task_argument argument
)
{
(void) argument;
int cpu_num;
rtems_id id;
rtems_status_code status;

View File

@@ -60,6 +60,8 @@ rtems_task Init(
rtems_task_argument argument
)
{
(void) argument;
rtems_status_code status;
rtems_time_of_day time;
uint32_t i;

View File

@@ -36,6 +36,8 @@ rtems_task Test_task(
rtems_task_argument unused
)
{
(void) unused;
rtems_id tid;
rtems_time_of_day time;
uint32_t task_index;

View File

@@ -50,6 +50,8 @@ rtems_task Test_task(
rtems_task_argument argument
)
{
(void) argument;
while (1)
;
/* XXX something goes here */
@@ -59,6 +61,8 @@ rtems_task Init(
rtems_task_argument argument
)
{
(void) argument;
uint32_t i;
char ch;
uint32_t cpu_num;

View File

@@ -48,6 +48,8 @@ void Validate_affinity(void);
void Task_1(rtems_task_argument arg)
{
(void) arg;
while(1);
}
@@ -227,6 +229,8 @@ void Validate_affinity(void )
static void Init(rtems_task_argument arg)
{
(void) arg;
int sc;
TEST_BEGIN();

View File

@@ -124,6 +124,9 @@ static rtems_interval test_atomic_add_init(
size_t active_workers
)
{
(void) arg;
(void) active_workers;
smpatomic01_context *ctx = (smpatomic01_context *) base;
_Atomic_Init_ulong(&ctx->atomic_value, 0);
@@ -138,6 +141,9 @@ static void test_atomic_add_body(
size_t worker_index
)
{
(void) arg;
(void) active_workers;
smpatomic01_context *ctx = (smpatomic01_context *) base;
unsigned long counter = 0;
@@ -155,6 +161,9 @@ static void test_atomic_add_fini(
size_t active_workers
)
{
(void) arg;
(void) active_workers;
smpatomic01_context *ctx = (smpatomic01_context *) base;
test_fini(ctx, "add", true);
@@ -166,6 +175,9 @@ static rtems_interval test_atomic_flag_init(
size_t active_workers
)
{
(void) arg;
(void) active_workers;
smpatomic01_context *ctx = (smpatomic01_context *) base;
_Atomic_Flag_clear(&ctx->global_flag, ATOMIC_ORDER_RELEASE);
@@ -181,6 +193,9 @@ static void test_atomic_flag_body(
size_t worker_index
)
{
(void) arg;
(void) active_workers;
smpatomic01_context *ctx = (smpatomic01_context *) base;
unsigned long counter = 0;
@@ -204,6 +219,9 @@ static void test_atomic_flag_fini(
size_t active_workers
)
{
(void) arg;
(void) active_workers;
smpatomic01_context *ctx = (smpatomic01_context *) base;
test_fini(ctx, "flag", false);
@@ -215,6 +233,9 @@ static rtems_interval test_atomic_sub_init(
size_t active_workers
)
{
(void) arg;
(void) active_workers;
smpatomic01_context *ctx = (smpatomic01_context *) base;
_Atomic_Init_ulong(&ctx->atomic_value, 0);
@@ -229,6 +250,9 @@ static void test_atomic_sub_body(
size_t worker_index
)
{
(void) arg;
(void) active_workers;
smpatomic01_context *ctx = (smpatomic01_context *) base;
unsigned long counter = 0;
@@ -246,6 +270,9 @@ static void test_atomic_sub_fini(
size_t active_workers
)
{
(void) arg;
(void) active_workers;
smpatomic01_context *ctx = (smpatomic01_context *) base;
test_fini(ctx, "sub", true);
@@ -257,6 +284,9 @@ static rtems_interval test_atomic_compare_exchange_init(
size_t active_workers
)
{
(void) arg;
(void) active_workers;
smpatomic01_context *ctx = (smpatomic01_context *) base;
_Atomic_Init_ulong(&ctx->atomic_value, 0);
@@ -272,6 +302,9 @@ static void test_atomic_compare_exchange_body(
size_t worker_index
)
{
(void) arg;
(void) active_workers;
smpatomic01_context *ctx = (smpatomic01_context *) base;
unsigned long counter = 0;
@@ -305,6 +338,9 @@ static void test_atomic_compare_exchange_fini(
size_t active_workers
)
{
(void) arg;
(void) active_workers;
smpatomic01_context *ctx = (smpatomic01_context *) base;
test_fini(ctx, "compare exchange", false);
@@ -316,6 +352,9 @@ static rtems_interval test_atomic_or_and_init(
size_t active_workers
)
{
(void) arg;
(void) active_workers;
smpatomic01_context *ctx = (smpatomic01_context *) base;
_Atomic_Init_ulong(&ctx->atomic_value, 0);
@@ -330,6 +369,9 @@ static void test_atomic_or_and_body(
size_t worker_index
)
{
(void) arg;
(void) active_workers;
smpatomic01_context *ctx = (smpatomic01_context *) base;
unsigned long the_bit = 1UL << worker_index;
unsigned long current_bit = 0;
@@ -365,6 +407,9 @@ static void test_atomic_or_and_fini(
size_t active_workers
)
{
(void) arg;
(void) active_workers;
smpatomic01_context *ctx = (smpatomic01_context *) base;
test_fini(ctx, "or/and", true);
@@ -376,6 +421,9 @@ static rtems_interval test_atomic_fence_init(
size_t active_workers
)
{
(void) arg;
(void) active_workers;
smpatomic01_context *ctx = (smpatomic01_context *) base;
ctx->normal_value = 0;
@@ -392,6 +440,9 @@ static void test_atomic_fence_body(
size_t worker_index
)
{
(void) arg;
(void) active_workers;
smpatomic01_context *ctx = (smpatomic01_context *) base;
if (rtems_test_parallel_is_master_worker(worker_index)) {
@@ -423,6 +474,9 @@ static void test_atomic_fence_fini(
size_t active_workers
)
{
(void) arg;
(void) active_workers;
smpatomic01_context *ctx = (smpatomic01_context *) base;
printf(
@@ -439,6 +493,8 @@ static rtems_interval test_atomic_store_load_rmw_init(
size_t active_workers
)
{
(void) arg;
smpatomic01_context *ctx = (smpatomic01_context *) base;
size_t i;
@@ -468,6 +524,8 @@ static void test_atomic_store_load_rmw_body(
size_t worker_index
)
{
(void) arg;
smpatomic01_context *ctx = (smpatomic01_context *) base;
uint32_t cpu_self_index;
sbintime_t t;
@@ -554,6 +612,8 @@ static void test_atomic_store_load_rmw_fini(
size_t active_workers
)
{
(void) arg;
smpatomic01_context *ctx = (smpatomic01_context *) base;
size_t i;
struct bintime bt;
@@ -598,6 +658,9 @@ static rtems_interval test_seqlock_init(
size_t active_workers
)
{
(void) arg;
(void) active_workers;
smpatomic01_context *ctx = (smpatomic01_context *) base;
ctx->normal_value = 0;
@@ -641,6 +704,10 @@ static void test_single_writer_seqlock_body(
size_t worker_index
)
{
(void) arg;
(void) active_workers;
(void) worker_index;
smpatomic01_context *ctx = (smpatomic01_context *) base;
uint32_t cpu_self_index;
unsigned long counter;
@@ -682,6 +749,8 @@ static void test_single_writer_seqlock_fini(
size_t active_workers
)
{
(void) arg;
smpatomic01_context *ctx = (smpatomic01_context *) base;
size_t i;
@@ -703,6 +772,10 @@ static void test_multi_writer_seqlock_body(
size_t worker_index
)
{
(void) arg;
(void) active_workers;
(void) worker_index;
smpatomic01_context *ctx = (smpatomic01_context *) base;
uint32_t cpu_self_index;
unsigned long counter;
@@ -751,6 +824,8 @@ static void test_multi_writer_seqlock_fini(
size_t active_workers
)
{
(void) arg;
smpatomic01_context *ctx = (smpatomic01_context *) base;
size_t i;
@@ -811,6 +886,9 @@ static void setup_worker(
rtems_id worker_id
)
{
(void) base;
(void) worker_index;
rtems_status_code sc;
rtems_task_priority prio;
@@ -820,6 +898,8 @@ static void setup_worker(
static void Init(rtems_task_argument arg)
{
(void) arg;
smpatomic01_context *ctx = &test_instance;
TEST_BEGIN();

View File

@@ -172,6 +172,8 @@ static void all_tests( void )
static void worker_task(rtems_task_argument arg)
{
(void) arg;
rtems_status_code sc;
all_tests();
@@ -209,6 +211,8 @@ static void test_smp_cache_manager( void )
static void Init(rtems_task_argument arg)
{
(void) arg;
TEST_BEGIN();
test_smp_cache_manager();
@@ -223,6 +227,9 @@ static void fatal_extension(
rtems_fatal_code error
)
{
(void) always_set_to_false;
(void) error;
uint32_t self = rtems_scheduler_get_processor();
if (source == RTEMS_FATAL_SOURCE_EXCEPTION && ctx.do_longjmp[self]) {

View File

@@ -89,6 +89,8 @@ static void test_delay(int ticks)
static void task(rtems_task_argument arg)
{
(void) arg;
rtems_status_code sc;
while (true) {
@@ -211,6 +213,8 @@ static void test(void)
static void Init(rtems_task_argument arg)
{
(void) arg;
rtems_status_code sc;
rtems_name to_name = rtems_build_name('I', 'D', 'L', 'E');;
uint32_t i;

View File

@@ -161,6 +161,8 @@ static uint32_t add_number_wrapper(uint32_t a, uint32_t b)
*/
static void task(rtems_task_argument arg)
{
(void) arg;
rtems_status_code sc;
uint32_t i;
@@ -295,6 +297,8 @@ static void locate_clock_interrupt_handler(
static void Init(rtems_task_argument arg)
{
(void) arg;
rtems_status_code sc;
uint32_t i;
uint32_t cpu;

View File

@@ -65,6 +65,8 @@ static void wait(test_context *ctx, SMP_barrier_State *bs)
static void timer_isr(rtems_id id, void *arg)
{
(void) id;
test_context *ctx = arg;
/* (B) */
@@ -73,6 +75,8 @@ static void timer_isr(rtems_id id, void *arg)
static void timer_task(rtems_task_argument arg)
{
(void) arg;
test_context *ctx = (test_context *) arg;
rtems_status_code sc;
rtems_id timer_id;
@@ -168,6 +172,8 @@ static void test(void)
static void Init(rtems_task_argument arg)
{
(void) arg;
rtems_resource_snapshot snapshot;
TEST_BEGIN();

View File

@@ -51,6 +51,8 @@ static SMP_barrier_Control barrier = SMP_BARRIER_CONTROL_INITIALIZER;
static void Init(rtems_task_argument arg)
{
(void) arg;
assert(0);
}
@@ -101,6 +103,8 @@ static void fatal_extension(
static void shutdown_handler(void *arg)
{
(void) arg;
_SMP_Request_shutdown();
_SMP_Fatal(SMP_FATAL_SHUTDOWN);
}
@@ -119,6 +123,10 @@ static rtems_status_code test_driver_init(
void *arg
)
{
(void) major;
(void) minor;
(void) arg;
uint32_t self = rtems_scheduler_get_processor();
uint32_t cpu_count = rtems_scheduler_get_processor_maximum();
uint32_t cpu;

View File

@@ -49,6 +49,8 @@ static SMP_barrier_Control barrier = SMP_BARRIER_CONTROL_INITIALIZER;
static void Init(rtems_task_argument arg)
{
(void) arg;
assert(0);
}
@@ -102,6 +104,10 @@ static rtems_status_code test_driver_init(
void *arg
)
{
(void) major;
(void) minor;
(void) arg;
uint32_t self = rtems_scheduler_get_processor();
uint32_t cpu_count = rtems_scheduler_get_processor_maximum();
uint32_t cpu;

View File

@@ -16,6 +16,8 @@ const char rtems_test_name[] = "SMPFATAL 3";
static void bad( rtems_id timer_id, void *arg )
{
(void) timer_id;
rtems_id *sem_id;
sem_id = arg;
@@ -26,6 +28,8 @@ static void bad( rtems_id timer_id, void *arg )
static void Init( rtems_task_argument arg )
{
(void) arg;
rtems_status_code sc;
rtems_id timer_id;
rtems_id sem_id;

View File

@@ -41,6 +41,8 @@ const char rtems_test_name[] = "SMPFATAL 4";
static void Init(rtems_task_argument arg)
{
(void) arg;
assert(0);
}

View File

@@ -41,6 +41,8 @@ const char rtems_test_name[] = "SMPFATAL 5";
static void Init(rtems_task_argument arg)
{
(void) arg;
assert(0);
}

View File

@@ -37,6 +37,8 @@ const char rtems_test_name[] = "SMPFATAL 6";
static void Init(rtems_task_argument arg)
{
(void) arg;
rtems_interrupt_level level;
TEST_BEGIN();

View File

@@ -103,6 +103,8 @@ void _CPU_SMP_Send_interrupt(uint32_t target_processor_index)
static void Init(rtems_task_argument arg)
{
(void) arg;
assert(0);
}

View File

@@ -336,6 +336,8 @@ static void test(void)
static void Init(rtems_task_argument arg)
{
(void) arg;
TEST_BEGIN();
test();

View File

@@ -90,6 +90,8 @@ static uint32_t simple_random(uint32_t v)
static void inherit_obtain_task(rtems_task_argument arg)
{
(void) arg;
test_context *ctx = &test_instance;
rtems_status_code sc;
SMP_barrier_State barrier_state = SMP_BARRIER_STATE_INITIALIZER;
@@ -125,6 +127,8 @@ static void inherit_obtain_task(rtems_task_argument arg)
static void inherit_release_task(rtems_task_argument arg)
{
(void) arg;
test_context *ctx = &test_instance;
rtems_status_code sc;
@@ -166,6 +170,8 @@ static void inherit_release_task(rtems_task_argument arg)
static void load_task(rtems_task_argument arg)
{
(void) arg;
size_t data_size;
volatile int *data;
volatile int dummy;
@@ -192,6 +198,8 @@ static void load_task(rtems_task_argument arg)
static void sem_worker_task(rtems_task_argument arg)
{
(void) arg;
test_context *ctx = &test_instance;
uint32_t v = arg;
@@ -392,6 +400,8 @@ static void test(void)
static void Init(rtems_task_argument arg)
{
(void) arg;
TEST_BEGIN();
test();

View File

@@ -83,6 +83,10 @@ static rtems_interval test_init(
size_t active_workers
)
{
(void) base;
(void) arg;
(void) active_workers;
return test_duration();
}
@@ -158,6 +162,8 @@ static void test_0_body(
size_t worker_index
)
{
(void) arg;
test_context *ctx = (test_context *) base;
size_t test = 0;
unsigned long counter = 0;
@@ -178,6 +184,8 @@ static void test_0_fini(
size_t active_workers
)
{
(void) arg;
test_context *ctx = (test_context *) base;
test_fini(
@@ -197,6 +205,8 @@ static void test_1_body(
size_t worker_index
)
{
(void) arg;
test_context *ctx = (test_context *) base;
size_t test = 1;
unsigned long counter = 0;
@@ -217,6 +227,8 @@ static void test_1_fini(
size_t active_workers
)
{
(void) arg;
test_context *ctx = (test_context *) base;
test_fini(
@@ -236,6 +248,8 @@ static void test_2_body(
size_t worker_index
)
{
(void) arg;
test_context *ctx = (test_context *) base;
size_t test = 2;
unsigned long counter = 0;
@@ -257,6 +271,8 @@ static void test_2_fini(
size_t active_workers
)
{
(void) arg;
test_context *ctx = (test_context *) base;
test_fini(
@@ -276,6 +292,8 @@ static void test_3_body(
size_t worker_index
)
{
(void) arg;
test_context *ctx = (test_context *) base;
size_t test = 3;
unsigned long counter = 0;
@@ -297,6 +315,8 @@ static void test_3_fini(
size_t active_workers
)
{
(void) arg;
test_context *ctx = (test_context *) base;
test_fini(
@@ -316,6 +336,8 @@ static void test_4_body(
size_t worker_index
)
{
(void) arg;
test_context *ctx = (test_context *) base;
size_t test = 4;
unsigned long counter = 0;
@@ -341,6 +363,8 @@ static void test_4_fini(
size_t active_workers
)
{
(void) arg;
test_context *ctx = (test_context *) base;
test_fini(
@@ -360,6 +384,8 @@ static void test_5_body(
size_t worker_index
)
{
(void) arg;
test_context *ctx = (test_context *) base;
size_t test = 5;
unsigned long counter = 0;
@@ -390,6 +416,8 @@ static void test_5_fini(
size_t active_workers
)
{
(void) arg;
test_context *ctx = (test_context *) base;
test_fini(
@@ -409,6 +437,8 @@ static void test_6_body(
size_t worker_index
)
{
(void) arg;
test_context *ctx = (test_context *) base;
size_t test = 6;
unsigned long counter = 0;
@@ -438,6 +468,8 @@ static void test_6_fini(
size_t active_workers
)
{
(void) arg;
test_context *ctx = (test_context *) base;
test_fini(
@@ -457,6 +489,8 @@ static void test_7_body(
size_t worker_index
)
{
(void) arg;
test_context *ctx = (test_context *) base;
size_t test = 7;
unsigned long counter = 0;
@@ -491,6 +525,8 @@ static void test_7_fini(
size_t active_workers
)
{
(void) arg;
test_context *ctx = (test_context *) base;
test_fini(
@@ -519,6 +555,8 @@ static void test_8_body(
size_t worker_index
)
{
(void) arg;
test_context *ctx = (test_context *) base;
size_t test = 8;
unsigned long counter = 0;
@@ -540,6 +578,8 @@ static void test_8_fini(
size_t active_workers
)
{
(void) arg;
test_context *ctx = (test_context *) base;
test_fini(
@@ -559,6 +599,8 @@ static void test_9_body(
size_t worker_index
)
{
(void) arg;
test_context *ctx = (test_context *) base;
size_t test = 9;
unsigned long counter = 0;
@@ -580,6 +622,8 @@ static void test_9_fini(
size_t active_workers
)
{
(void) arg;
test_context *ctx = (test_context *) base;
test_fini(
@@ -599,6 +643,8 @@ static void test_10_body(
size_t worker_index
)
{
(void) arg;
test_context *ctx = (test_context *) base;
size_t test = 10;
unsigned long counter = 0;
@@ -642,6 +688,8 @@ static void test_10_fini(
size_t active_workers
)
{
(void) arg;
test_context *ctx = (test_context *) base;
test_fini(
@@ -661,6 +709,8 @@ static void test_11_body(
size_t worker_index
)
{
(void) arg;
test_context *ctx = (test_context *) base;
size_t test = 11;
unsigned long counter = 0;
@@ -683,6 +733,8 @@ static void test_11_fini(
size_t active_workers
)
{
(void) arg;
test_context *ctx = (test_context *) base;
test_fini(
@@ -702,6 +754,8 @@ static void test_12_body(
size_t worker_index
)
{
(void) arg;
test_context *ctx = (test_context *) base;
size_t test = 12;
unsigned long counter = 0;
@@ -726,6 +780,8 @@ static void test_12_fini(
size_t active_workers
)
{
(void) arg;
test_context *ctx = (test_context *) base;
test_fini(
@@ -819,6 +875,8 @@ static void test(void)
static void Init(rtems_task_argument arg)
{
(void) arg;
TEST_BEGIN();
test();

View File

@@ -237,6 +237,8 @@ static void test(void)
static void Init(rtems_task_argument arg)
{
(void) arg;
rtems_print_printer_fprintf_putc(&rtems_test_printer);
TEST_BEGIN();

View File

@@ -66,6 +66,8 @@ static rtems_task_priority migration_task_prio(uint32_t task_index)
static void migration_task(rtems_task_argument arg)
{
(void) arg;
test_context *ctx = &test_instance;
uint32_t task_index = arg;
rtems_task_priority prio = migration_task_prio(task_index);
@@ -140,6 +142,8 @@ static void test_migrations(test_context *ctx)
static void busy_loop_task(rtems_task_argument arg)
{
(void) arg;
while (true) {
/* Do nothing */
}
@@ -274,6 +278,8 @@ static void init_scheduler_ids(test_context *ctx)
static void Init(rtems_task_argument arg)
{
(void) arg;
test_context *ctx = &test_instance;
rtems_resource_snapshot snapshot;

View File

@@ -294,6 +294,8 @@ static void create_mrsp_sema(
static void run_task(rtems_task_argument arg)
{
(void) arg;
volatile bool *run = (volatile bool *) arg;
*run = true;
@@ -305,6 +307,8 @@ static void run_task(rtems_task_argument arg)
static void obtain_and_release_worker(rtems_task_argument arg)
{
(void) arg;
test_context *ctx = &test_instance;
rtems_status_code sc;
SMP_barrier_State barrier_state = SMP_BARRIER_STATE_INITIALIZER;
@@ -546,6 +550,8 @@ static void test_mrsp_obtain_and_release(test_context *ctx)
static void obtain_after_migration_worker(rtems_task_argument arg)
{
(void) arg;
test_context *ctx = &test_instance;
rtems_status_code sc;
SMP_barrier_State barrier_state = SMP_BARRIER_STATE_INITIALIZER;
@@ -568,6 +574,8 @@ static void obtain_after_migration_worker(rtems_task_argument arg)
static void obtain_after_migration_high(rtems_task_argument arg)
{
(void) arg;
test_context *ctx = &test_instance;
rtems_status_code sc;
SMP_barrier_State barrier_state = SMP_BARRIER_STATE_INITIALIZER;
@@ -795,6 +803,8 @@ static void test_mrsp_nested_obtain_error(test_context *ctx)
static void deadlock_timer(rtems_id timer_id, void *arg)
{
(void) timer_id;
test_context *ctx = arg;
change_prio(ctx->main_task_id, 1);
@@ -802,6 +812,8 @@ static void deadlock_timer(rtems_id timer_id, void *arg)
static void deadlock_worker(rtems_task_argument arg)
{
(void) arg;
test_context *ctx = &test_instance;
rtems_status_code sc;
@@ -988,6 +1000,8 @@ static void test_mrsp_multiple_obtain(test_context *ctx)
static void ready_unlock_worker(rtems_task_argument arg)
{
(void) arg;
test_context *ctx = &test_instance;
rtems_status_code sc;
SMP_barrier_State barrier_state = SMP_BARRIER_STATE_INITIALIZER;
@@ -1015,6 +1029,8 @@ static void ready_unlock_worker(rtems_task_argument arg)
static void unblock_ready_timer(rtems_id timer_id, void *arg)
{
(void) timer_id;
test_context *ctx = arg;
rtems_status_code sc;
@@ -1062,6 +1078,8 @@ static void unblock_ready_owner(test_context *ctx)
static void unblock_owner_before_rival_timer(rtems_id timer_id, void *arg)
{
(void) timer_id;
test_context *ctx = arg;
rtems_status_code sc;
@@ -1074,6 +1092,8 @@ static void unblock_owner_before_rival_timer(rtems_id timer_id, void *arg)
static void unblock_owner_after_rival_timer(rtems_id timer_id, void *arg)
{
(void) timer_id;
test_context *ctx = arg;
rtems_status_code sc;
@@ -1356,6 +1376,8 @@ static void test_mrsp_obtain_and_sleep_and_release(test_context *ctx)
static void help_task(rtems_task_argument arg)
{
(void) arg;
test_context *ctx = &test_instance;
rtems_status_code sc;
@@ -1564,6 +1586,8 @@ static void load_worker(rtems_task_argument index)
static void migration_task(rtems_task_argument arg)
{
(void) arg;
test_context *ctx = &test_instance;
rtems_status_code sc;
uint32_t cpu_count = rtems_scheduler_get_processor_maximum();
@@ -1743,6 +1767,8 @@ static void test_mrsp_load(test_context *ctx)
static void Init(rtems_task_argument arg)
{
(void) arg;
test_context *ctx = &test_instance;
rtems_status_code sc;
rtems_resource_snapshot snapshot;

View File

@@ -276,6 +276,10 @@ static rtems_interval test_broadcast_init(
size_t active_workers
)
{
(void) base;
(void) arg;
(void) active_workers;
return test_duration();
}
@@ -286,6 +290,9 @@ static void test_broadcast_body(
size_t worker_index
)
{
(void) arg;
(void) active_workers;
test_context *ctx;
ctx = (test_context *) base;
@@ -306,6 +313,10 @@ static void test_broadcast_fini(
size_t active_workers
)
{
(void) base;
(void) arg;
(void) active_workers;
/* Do nothing */
}
@@ -433,16 +444,22 @@ static Per_CPU_Job job_order_jobs[TEST_JOB_ORDER_JOBS];
static void job_order_handler_0(void *arg)
{
(void) arg;
T_step(1);
}
static void job_order_handler_1(void *arg)
{
(void) arg;
T_step(2);
}
static void job_order_handler_2(void *arg)
{
(void) arg;
T_step(3);
}
@@ -476,12 +493,16 @@ static Per_CPU_Job add_job_in_job_jobs[TEST_ADD_JOB_IN_JOB_JOBS];
static void add_job_in_job_handler_0(void *arg)
{
(void) arg;
T_step(1);
_Per_CPU_Add_job(_Per_CPU_Get(), &add_job_in_job_jobs[1]);
}
static void add_job_in_job_handler_1(void *arg)
{
(void) arg;
T_step(3);
}
@@ -544,6 +565,8 @@ T_TEST_CASE(BroadcastDuringMultitaskingDispatchDisabled)
static void Init(rtems_task_argument arg)
{
(void) arg;
T_register();
T_run_all();

View File

@@ -102,6 +102,8 @@ static void assert_cpu(uint32_t expected_cpu)
static void test_task_get_priority_not_defined(test_context *ctx)
{
(void) ctx;
rtems_status_code sc;
rtems_id scheduler_id;
rtems_task_priority priority;
@@ -428,6 +430,8 @@ static void assert_prio_by_scheduler(
static void helper(rtems_task_argument arg)
{
(void) arg;
test_context *ctx = &test_instance;
while (true) {
@@ -449,6 +453,8 @@ static void helper(rtems_task_argument arg)
static void worker(rtems_task_argument arg)
{
(void) arg;
test_context *ctx = &test_instance;
task_id id = arg;
@@ -1101,6 +1107,8 @@ static void test(test_context *ctx)
static void Init(rtems_task_argument arg)
{
(void) arg;
TEST_BEGIN();
test(&test_instance);
TEST_END();

View File

@@ -89,6 +89,8 @@ typedef struct {
static void release(test_context *ctx, worker_context *wc, size_t nest_level)
{
(void) nest_level;
rtems_status_code sc;
size_t i;
@@ -311,6 +313,8 @@ static void tear_down(test_context *ctx)
static void Init(rtems_task_argument arg)
{
(void) arg;
test_context *ctx;
rtems_resource_snapshot snapshot;

View File

@@ -213,6 +213,8 @@ static void test(void)
static void Init(rtems_task_argument arg)
{
(void) arg;
rtems_status_code sc;
cpu_set_t cpu_set;

View File

@@ -155,6 +155,8 @@ void *POSIX_Init(
void *ignored
)
{
(void) ignored;
TEST_BEGIN();
/* Initialize thread id */

View File

@@ -54,6 +54,8 @@ void *Thread_1(void *unused);
void *Thread_1(void *unused)
{
(void) unused;
while(1);
}
@@ -221,6 +223,8 @@ void *POSIX_Init(
void *ignored
)
{
(void) ignored;
TEST_BEGIN();
/* Initialize thread id */

View File

@@ -157,6 +157,8 @@ static void test(test_context *ctx)
static void *POSIX_Init(void *arg)
{
(void) arg;
rtems_resource_snapshot snapshot;
TEST_BEGIN();

View File

@@ -70,6 +70,8 @@ static test_context ctx_instance = {
static void signal_handler(int signum)
{
(void) signum;
test_context *ctx = &ctx_instance;
switch (ctx->state) {
@@ -175,6 +177,8 @@ static void test(void)
static void *POSIX_Init(void *arg)
{
(void) arg;
TEST_BEGIN();
if (rtems_scheduler_get_processor_maximum() >= 2) {

View File

@@ -82,6 +82,8 @@ static void test_delay(int ticks)
static void task(rtems_task_argument arg)
{
(void) arg;
uint32_t cpu;
cpu_set_t cpuset;
@@ -180,6 +182,8 @@ static void test(void)
static void Init(rtems_task_argument arg)
{
(void) arg;
TEST_BEGIN();
test();

View File

@@ -126,6 +126,8 @@ static void init_verify( int expect )
static void task(rtems_task_argument arg)
{
(void) arg;
rtems_status_code sc;
/* Never block and continually get core id */
@@ -218,6 +220,8 @@ static void test(void)
static void Init(rtems_task_argument arg)
{
(void) arg;
TEST_BEGIN();
test();

View File

@@ -91,6 +91,8 @@ static void test(void)
static void Init(rtems_task_argument arg)
{
(void) arg;
TEST_BEGIN();
test();

View File

@@ -73,6 +73,8 @@ static void test_delay(int ticks)
*/
static void task(rtems_task_argument arg)
{
(void) arg;
rtems_status_code sc;
while (true) {
@@ -172,6 +174,8 @@ static void test(void)
static void Init(rtems_task_argument arg)
{
(void) arg;
TEST_BEGIN();
test();

View File

@@ -90,6 +90,8 @@ static void test_delay(int ticks)
static void task(rtems_task_argument arg)
{
(void) arg;
rtems_status_code sc;
while (true) {
@@ -237,6 +239,8 @@ static void test(void)
static void Init(rtems_task_argument arg)
{
(void) arg;
TEST_BEGIN();
test();

View File

@@ -44,6 +44,8 @@ static test_context test_instance;
static void t(test_context *ctx, rtems_interval p, long nanoseconds)
{
(void) ctx;
rtems_status_code sc;
rtems_id period;
rtems_name name;
@@ -126,6 +128,8 @@ static void test(test_context *ctx)
static void Init(rtems_task_argument arg)
{
(void) arg;
test_context *ctx = &test_instance;
TEST_BEGIN();

View File

@@ -412,6 +412,8 @@ static void test(void)
static void Init(rtems_task_argument arg)
{
(void) arg;
TEST_BEGIN();
if (rtems_scheduler_get_processor_maximum() == CPU_COUNT) {

View File

@@ -147,6 +147,8 @@ static void test(test_context *ctx)
static void Init(rtems_task_argument arg)
{
(void) arg;
TEST_BEGIN();
test(&test_instance);
TEST_END();

View File

@@ -101,6 +101,8 @@ static void test(void)
static void Init(rtems_task_argument arg)
{
(void) arg;
TEST_BEGIN();
if (rtems_scheduler_get_processor_maximum() == CPU_COUNT) {

View File

@@ -83,6 +83,8 @@ static void test(void)
static void Init(rtems_task_argument arg)
{
(void) arg;
TEST_BEGIN();
test();

View File

@@ -60,6 +60,8 @@ static void resume(size_t i)
static void task(rtems_task_argument arg)
{
(void) arg;
rtems_task_priority task_priority;
rtems_status_code sc;
@@ -198,6 +200,8 @@ static void test(void)
static void Init(rtems_task_argument arg)
{
(void) arg;
TEST_BEGIN();
test();

View File

@@ -55,10 +55,10 @@ static volatile bool ready;
static void task(rtems_task_argument arg)
{
rtems_status_code sc;
(void) arg;
rtems_status_code sc;
rtems_test_assert(rtems_scheduler_get_processor() == 1);
rtems_test_assert(sched_get_priority_min(SCHED_RR) == 1);
rtems_test_assert(sched_get_priority_max(SCHED_RR) == INT_MAX - 1);
@@ -422,6 +422,8 @@ static void test(void)
static void Init(rtems_task_argument arg)
{
(void) arg;
rtems_resource_snapshot snapshot;
TEST_BEGIN();

View File

@@ -82,6 +82,8 @@ static void change_priority(
static void task(rtems_task_argument arg)
{
(void) arg;
rtems_test_assert(0);
}
@@ -491,6 +493,8 @@ static void test_case_unblock_op(
Scheduler_SMP_Node_state new_state
)
{
(void) other;
Per_CPU_Control *cpu_self;
cpu_self = _Thread_Dispatch_disable();
@@ -560,6 +564,8 @@ static void test_unblock_op(void)
void Init(rtems_task_argument arg)
{
(void) arg;
rtems_resource_snapshot snapshot;
rtems_status_code sc;
rtems_id task_id;

View File

@@ -58,6 +58,8 @@ static test_context test_instance;
static void migration_task(rtems_task_argument arg)
{
(void) arg;
test_context *ctx = (test_context *) arg;
uint32_t cpu_count = rtems_scheduler_get_processor_maximum();
uint32_t cpu_index = rtems_scheduler_get_processor();
@@ -178,6 +180,8 @@ static void test(test_context *ctx)
static void Init(rtems_task_argument arg)
{
(void) arg;
rtems_resource_snapshot snapshot;
TEST_BEGIN();

View File

@@ -73,6 +73,8 @@ static test_context ctx_instance = {
static void signal_handler(rtems_signal_set signal)
{
(void) signal;
test_context *ctx = &ctx_instance;
rtems_test_assert(_ISR_Get_level() == 0);
@@ -177,6 +179,8 @@ static void test_two_processors(test_context *ctx)
static void isr_level_timer(rtems_id timer, void *arg)
{
(void) timer;
test_context *ctx = arg;
rtems_status_code sc;
@@ -186,6 +190,8 @@ static void isr_level_timer(rtems_id timer, void *arg)
static void isr_level_handler(rtems_signal_set signal)
{
(void) signal;
test_context *ctx = &ctx_instance;
rtems_test_assert(_ISR_Get_level() == 0);
@@ -227,6 +233,8 @@ static void test_isr_level(test_context *ctx)
static void Init(rtems_task_argument arg)
{
(void) arg;
test_context *ctx = &ctx_instance;
TEST_BEGIN();

View File

@@ -115,6 +115,8 @@ static void test(void)
static void Init(rtems_task_argument arg)
{
(void) arg;
TEST_BEGIN();
test();

View File

@@ -353,6 +353,8 @@ static void test(void)
static void Init(rtems_task_argument arg)
{
(void) arg;
TEST_BEGIN();
if (rtems_scheduler_get_processor_maximum() == CPU_COUNT) {

View File

@@ -120,6 +120,8 @@ static void toggler(rtems_task_argument self)
static void switcher(rtems_task_argument self)
{
(void) self;
test_context *ctx = &ctx_instance;
while (true) {
@@ -236,6 +238,8 @@ static void test(void)
static void Init(rtems_task_argument arg)
{
(void) arg;
TEST_BEGIN();
if (rtems_scheduler_get_processor_maximum() >= 2) {

View File

@@ -82,6 +82,8 @@ static void delete_extension(
static void terminate_extension(Thread_Control *executing)
{
(void) executing;
test_context *ctx = &test_instance;
ctx->terminated = true;
@@ -89,6 +91,8 @@ static void terminate_extension(Thread_Control *executing)
static void switch_extension(Thread_Control *executing, Thread_Control *heir)
{
(void) heir;
test_context *ctx = &test_instance;
if (ctx->delay_switch_for_executing == executing) {
@@ -276,6 +280,8 @@ static void test_set_life_protection(rtems_task_argument variant)
static void delay_switch_task(rtems_task_argument arg)
{
(void) arg;
test_context *ctx = &test_instance;
ctx->delay_switch_for_executing = _Thread_Get_executing();
@@ -497,6 +503,8 @@ static void test_operation_with_delete_in_progress(test_op op)
static void Init(rtems_task_argument arg)
{
(void) arg;
TEST_BEGIN();
if (rtems_scheduler_get_processor_maximum() >= CPU_COUNT) {

View File

@@ -199,6 +199,8 @@ static void unpin(bool blocked)
static void event_task(rtems_task_argument arg)
{
(void) arg;
test_context *ctx;
ctx = (test_context *) arg;
@@ -581,6 +583,8 @@ static void test(test_context *ctx)
static void Init(rtems_task_argument arg)
{
(void) arg;
TEST_BEGIN();
if (rtems_scheduler_get_processor_maximum() == CPU_COUNT) {

View File

@@ -80,6 +80,8 @@ static void test(void)
static void Init(rtems_task_argument arg)
{
(void) arg;
TEST_BEGIN();
test();

View File

@@ -148,6 +148,8 @@ static void test(void)
static void Init(rtems_task_argument arg)
{
(void) arg;
rtems_resource_snapshot snapshot;
TEST_BEGIN();