Changeset b7282c7 in rtems-central
- Timestamp:
- 11/18/21 08:46:34 (22 months ago)
- Branches:
- master
- Children:
- 1984239
- Parents:
- 5634751
- git-author:
- Sebastian Huber <sebastian.huber@…> (11/18/21 08:46:34)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (11/19/21 07:22:34)
- Location:
- spec/rtems/task
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
spec/rtems/task/if/ident.yml
r5634751 rb7282c7 19 19 specified in ${.:/params[0]/name}. 20 20 21 A task may obtain its own identifier by specifying ${self-define:/name} for22 the name.21 A task may obtain its own identifier by specifying 22 ${../../object/if/who-am-i:/name} for the name. 23 23 24 24 The node to search is specified in ${.:/params[1]/name}. It shall be -
spec/rtems/task/req/ident.yml
r5634751 rb7282c7 7 7 - role: interface-function 8 8 uid: ../if/ident 9 - role: interface-function 10 uid: ../../object/if/who-am-i 9 11 post-conditions: 10 12 - name: Status 11 13 states: 12 - name: OkAnd SelfId14 - name: OkAndWhoAmI 13 15 test-code: | 14 16 T_rsc( ctx->status, RTEMS_SUCCESSFUL ); … … 30 32 - name: Name 31 33 states: 32 - name: Self34 - name: WhoAmI 33 35 test-code: | 34 36 ctx->id_value = 0xffffffff; 35 37 ctx->id = &ctx->id_value; 36 38 text: | 37 While the ${../if/ident:/params[0]/name} parameter is 38 ${../if/self:/name}. 39 - name: NotSelf 39 While the ${../if/ident:/params[0]/name} parameter is equal to 40 ${../../object/if/who-am-i:/name}, 41 while ${../if/ident:/params[2]/name} parameter is not equal to 42 ${/c/if/null:/name}. 43 - name: NotWhoAmI 40 44 test-code: | 41 45 ctx->id = NULL; 42 46 /* Preparation performed by ${../../req/ident:/test-run}() */ 43 47 text: | 44 While the ${../if/ident:/params[0]/name} is not ${../if/self:/name} or 45 ${../if/ident:/params[2]/name} parameter is ${/c/if/null:/name}, the 46 behaviour of ${../if/ident:/name} shall be specified by 48 While the ${../if/ident:/params[0]/name} is not equal to 49 ${../../object/if/who-am-i:/name} or ${../if/ident:/params[2]/name} 50 parameter is equal to ${/c/if/null:/name}, 51 the behaviour of ${../if/ident:/name} shall be specified by 47 52 ${../../req/ident}. 48 53 test-epilogue: null … … 142 147 - enabled-by: true 143 148 post-conditions: 144 Status: OkAnd SelfId149 Status: OkAndWhoAmI 145 150 pre-conditions: 146 151 Name: 147 - Self152 - WhoAmI 148 153 - enabled-by: true 149 154 post-conditions: … … 151 156 pre-conditions: 152 157 Name: 153 - Not Self158 - NotWhoAmI 154 159 type: requirement
Note: See TracChangeset
for help on using the changeset viewer.