nasa / CF

The Core Flight System (cFS) CFDP application.
Apache License 2.0
76 stars 45 forks source link

UT fails to build if C library does not provide INTMAX_MAX #403

Closed jphickey closed 1 year ago

jphickey commented 1 year ago

Checklist (Please check before submitting)

Describe the bug Non-compliant C libraries might not provide the INTMAX_MAX value. This is the case on VxWorks 6.9 and therefore the Any_int_GreaterThan() function fails to compile.

To Reproduce Cross compile, with coverage tests, on VxWorks 6.9. Error is reported:

apps/cf/unit-test/utilities/cf_test_utils.c: In function 'Any_int_GreaterThan':
apps/cf/unit-test/utilities/cf_test_utils.c:458: error: 'INTMAX_MAX' undeclared (first use in this function)

Expected behavior Build should succeed

System observed on: VxWorks 6.9

Additional context This function appears to not actually be used, so may be able to just remove it.

Reporter Info Joseph Hickey, Vantage Systems, Inc.