blob: 4d25436c496cdfb1a1daca5f309a777258c60a85 (
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
copyrights:
- Copyright (C) 2021 embedded brains GmbH & Co. KG
enabled-by: true
functional-type: action
links:
- role: interface-function
uid: ../if/is-name-valid
post-conditions:
- name: Result
states:
- name: 'True'
test-code: |
T_true( ctx->result );
text: |
The return value of ${../if/is-name-valid:/name} shall be
${/c/if/true:/name}.
- name: 'False'
test-code: |
T_false( ctx->result );
text: |
The return value of ${../if/is-name-valid:/name} shall be
${/c/if/false:/name}.
test-epilogue: null
test-prologue: null
pre-conditions:
- name: Name
states:
- name: Valid
test-code: |
ctx->name = 1;
text: |
While the ${../if/is-name-valid:/params[0]/name} parameter is not equal
to zero.
- name: Invalid
test-code: |
ctx->name = 0;
text: |
While the ${../if/is-name-valid:/params[0]/name} parameter is
equal to zero.
test-epilogue: null
test-prologue: null
rationale: null
references: []
requirement-type: functional
skip-reasons: {}
test-action: |
ctx->result = rtems_is_name_valid( ctx->name );
test-brief: null
test-cleanup: null
test-context:
- brief: |
This member contains the return value of the ${../if/is-name-valid:/name}
call.
description: null
member: |
bool result
- brief: |
This member specifies if the ${../if/is-name-valid:/params[0]/name}
parameter value.
description: null
member: |
rtems_name name
test-context-support: null
test-description: null
test-header: null
test-includes:
- rtems.h
test-local-includes: []
test-prepare: null
test-setup: null
test-stop: null
test-support: null
test-target: testsuites/validation/tc-support-is-name-valid.c
test-teardown: null
text: ${.:text-template}
transition-map:
- enabled-by: true
post-conditions:
Result: 'True'
pre-conditions:
Name:
- Valid
- enabled-by: true
post-conditions:
Result: 'False'
pre-conditions:
Name:
- Invalid
type: requirement
|