Changeset 5634751 in rtems-central


Ignore:
Timestamp:
11/18/21 08:38:03 (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
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)
Message:

spec: Specify rtems_build_name() function

Location:
spec/rtems/object
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • spec/rtems/object/val/object.yml

    rcd9d0ad r5634751  
    66test-actions:
    77- 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.
    910  action-code: |
    1011    static const uint16_t chars[] = { 0, 255, 257 };
     
    5354            accumulated_name += actual_name;
    5455
    55             actual_name = rtems_build_name(
     56            actual_name = BuildName(
    5657              chars[ i ],
    5758              chars[ j ],
     
    6061            );
    6162            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
    6272            accumulated_name += actual_name;
    6373          }
     
    7282    links:
    7383    - role: validation
     84      uid: ../req/build-name
     85    - role: validation
    7486      uid: ../req/build-name-macro
    7587  links:
     88  - role: validation
     89    uid: ../req/build-name
    7690  - role: validation
    7791    uid: ../req/build-name-macro
     
    102116test-setup: null
    103117test-stop: null
    104 test-support: null
     118test-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  }
    105130test-target: testsuites/validation/tc-object.c
    106131test-teardown: null
Note: See TracChangeset for help on using the changeset viewer.