RTEMS 6.3
Loading...
Searching...
No Matches

Tests four fatal errors. More...

Files

file  testsuites/validation/tr-fatal-smp.c
file  testsuites/validation/tr-fatal-smp.h

Data Structures

struct  ScoreSmpValFatal_Context
 Test context for spec:/score/smp/val/fatal test case. More...

Functions

 RTEMS_SYSINIT_ITEM (TriggerTestCase, RTEMS_SYSINIT_DEVICE_DRIVERS, RTEMS_SYSINIT_ORDER_MIDDLE)
void ScoreSmpValFatal_Run (rtems_fatal_source source, rtems_fatal_code code)
 Runs the parameterized test case.

Variables

Per_CPU_Job job

Detailed Description

Tests four fatal errors.

This test case performs the following actions:

  • The test action is carried out by TriggerTestCase().
    • Check that the expected fatal source is present.
    • Check that the expected fatal code is present.
    • Check that the processor state is shutdown.
    • Check that a second shutdown request does not end in a recursive shutdown response.
  • Issue a job on a processor in the shutdown state. Check that the right fatal error occurs if we try to wait for this job to complete.
  • Start multitasking on an invalid processor. Check that the right fatal error occurs.
  • Start multitasking on an unassigned processor. Check that the right fatal error occurs.

Function Documentation

◆ ScoreSmpValFatal_Run()

void ScoreSmpValFatal_Run ( rtems_fatal_source source,
rtems_fatal_code code )

Runs the parameterized test case.

Parameters
sourceis fatal source.
codeis fatal code.

Variable Documentation

◆ job

Per_CPU_Job job
Initial value:
= {
.context = &job_context
}