blob: 2b8acaf97f183677a0be4d36ff9192b3ff2f69e7 (
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
51
52
53
54
55
56
57
58
59
60
|
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
copyrights:
- Copyright (C) 2021, 2023 embedded brains GmbH & Co. KG
enabled-by:
not: RTEMS_SMP
links: []
test-actions:
- action-brief: |
Assert that ${../if/get-processor:/name} is a constant expression which
evaluates to zero.
action-code: |
RTEMS_STATIC_ASSERT( rtems_scheduler_get_processor() == 0, GET_PROCESSOR );
checks: []
links:
- role: validation
uid: ../req/get-processor-non-smp
- action-brief: |
Check that calling ${../if/get-processor:/name} returns zero.
action-code: |
T_eq_u32( rtems_scheduler_get_processor(), 0 );
checks: []
links:
- role: validation
uid: ../req/get-processor-non-smp
- action-brief: |
Assert that ${../if/get-processor-maximum:/name} is a constant expression
which evaluates to zero.
action-code: |
RTEMS_STATIC_ASSERT(
rtems_scheduler_get_processor_maximum() == 1,
GET_PROCESSOR_MAXIMUM
);
checks: []
links:
- role: validation
uid: ../req/get-processor-maximum-non-smp
- action-brief: |
Check that calling ${../if/get-processor-maximum:/name} returns one.
action-code: |
T_eq_u32( rtems_scheduler_get_processor_maximum(), 1 );
checks: []
links:
- role: validation
uid: ../req/get-processor-maximum-non-smp
test-brief: |
This test case collection provides validation test cases for non-SMP
requirements of the ${../if/group:/name}.
test-context: []
test-context-support: null
test-description: null
test-header: null
test-includes:
- rtems.h
test-local-includes: []
test-setup: null
test-stop: null
test-support: null
test-target: testsuites/validation/tc-scheduler-non-smp.c
test-teardown: null
type: test-case
|