Skip to content
  • Pekka Paalanen's avatar
    tests: introduce struct fixture_metadata · ef813884
    Pekka Paalanen authored and Pekka Paalanen's avatar Pekka Paalanen committed
    
    
    This allows tests to give a meaningful name for their fixture setups
    when they use more than one of them.
    
    If a test uses DECLARE_FIXTURE_SETUP_WITH_ARG(), it must now pass a
    third argument naming the field which is struct fixture_metadata. This
    also means that the fixture setup data must now be a struct, it cannot
    be a plain type anymore. A compiler error is generated if the field type
    is not the expected one.
    
    All tests using DECLARE_FIXTURE_SETUP_WITH_ARG() and converted to the
    new form and given names for their fixture setups.
    
    The fixture setup names not actually used yet, that will be another
    patch.
    
    Signed-off-by: default avatarPekka Paalanen <pekka.paalanen@collabora.com>
    ef813884