summaryrefslogtreecommitdiffstats
path: root/spec/score/sched/smp/edf/val/edf.yml
blob: 7d34841ec7afe69a197bec792ddf770ba4096318 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
copyrights:
- Copyright (C) 2021 embedded brains GmbH & Co. KG
enabled-by: RTEMS_SMP
links: []
test-actions:
- action-brief: |
    Validate a set affinity error case with an unsupported subset.
  action-code: |
    if ( rtems_scheduler_get_processor_maximum() >= 3 ) {
      rtems_status_code sc;
      cpu_set_t         affinity;

      CPU_ZERO( &affinity );
      CPU_SET( 0, &affinity );
      CPU_SET( 1, &affinity );

      RemoveProcessor( SCHEDULER_B_ID, 1 );
      RemoveProcessor( SCHEDULER_C_ID, 2 );
      AddProcessor( SCHEDULER_A_ID, 1 );
      AddProcessor( SCHEDULER_B_ID, 2 );

      sc = rtems_task_set_affinity( RTEMS_SELF, sizeof( affinity), &affinity );
      T_rsc( sc, RTEMS_INVALID_NUMBER );

      RemoveProcessor( SCHEDULER_A_ID, 1 );
      RemoveProcessor( SCHEDULER_B_ID, 2 );
      AddProcessor( SCHEDULER_B_ID, 1 );
      AddProcessor( SCHEDULER_C_ID, 2 );
    }
  checks: []
  links:
  - role: validation
    uid: ../req/set-affinity-unsupported-subset
test-brief: |
  Tests for operations of the EDF SMP scheduler.
test-context: []
test-context-support: null
test-description: null
test-header: null
test-includes:
- rtems.h
test-local-includes:
- tx-support.h
test-setup: null
test-stop: null
test-support: null
test-target: testsuites/validation/tc-sched-smp-edf.c
test-teardown: null
type: test-case