Skip to content

Resolve SEM_VALUE_MAX not defined test issue #632

@skliper

Description

@skliper

Is your feature request related to a problem? Please describe.
Was a FIXME:

/*
* FIXME: This test can only be done if the OS defines a specific "SEM_VALUE_MAX"
* The OSAL should define this for itself, but it currently does not.
* (This macro is not currently defined in RTEMS)
*/
#ifdef SEM_VALUE_MAX
res = OS_CountSemCreate(&count_sem_ids[0], "CountSem1", ((uint32)SEM_VALUE_MAX) + 1, 0);
if (res == OS_INVALID_SEM_VALUE)
UT_OS_TEST_RESULT(testDesc, UTASSERT_CASETYPE_PASS);
else
UT_OS_TEST_RESULT(testDesc, UTASSERT_CASETYPE_FAILURE);
#else
UT_OS_TEST_RESULT(testDesc, UTASSERT_CASETYPE_NA);
#endif

Describe the solution you'd like
Address/disposition as an issue.

Describe alternatives you've considered
None

Additional context
None

Requester Info
Jacob Hageman - NASA/GSFC

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions