Changeset 5634751 in rtems-central
- Timestamp:
- 11/18/21 08:38:03 (2 years ago)
- Branches:
- master
- Children:
- b7282c7
- Parents:
- cd9d0ad
- git-author:
- Sebastian Huber <sebastian.huber@…> (11/18/21 08:38:03)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (11/19/21 07:22:34)
- Location:
- spec/rtems/object
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
spec/rtems/object/val/object.yml
rcd9d0ad r5634751 6 6 test-actions: 7 7 - action-brief: | 8 Validate the results of rtems_build_name() for a sample set of parameters. 8 Validate the results of ${../if/build-name:/name} (function) and 9 ${../if/build-name-macro:/name} (macro) for a sample set of parameters. 9 10 action-code: | 10 11 static const uint16_t chars[] = { 0, 255, 257 }; … … 53 54 accumulated_name += actual_name; 54 55 55 actual_name = rtems_build_name(56 actual_name = BuildName( 56 57 chars[ i ], 57 58 chars[ j ], … … 60 61 ); 61 62 T_quiet_eq_u32( actual_name, expected_name ); 63 64 actual_name = BuildNameMacro( 65 chars[ i ], 66 chars[ j ], 67 chars[ k ], 68 chars[ r ] 69 ); 70 T_quiet_eq_u32( actual_name, expected_name ); 71 62 72 accumulated_name += actual_name; 63 73 } … … 72 82 links: 73 83 - role: validation 84 uid: ../req/build-name 85 - role: validation 74 86 uid: ../req/build-name-macro 75 87 links: 88 - role: validation 89 uid: ../req/build-name 76 90 - role: validation 77 91 uid: ../req/build-name-macro … … 102 116 test-setup: null 103 117 test-stop: null 104 test-support: null 118 test-support: | 119 static rtems_name BuildNameMacro( char c1, char c2, char c3, char c4 ) 120 { 121 return rtems_build_name( c1, c2, c3, c4 ); 122 } 123 124 #undef rtems_build_name 125 126 static rtems_name BuildName( char c1, char c2, char c3, char c4 ) 127 { 128 return rtems_build_name( c1, c2, c3, c4 ); 129 } 105 130 test-target: testsuites/validation/tc-object.c 106 131 test-teardown: null
Note: See TracChangeset
for help on using the changeset viewer.