You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue was imported from the GSFC issue tracking system
Imported from: [GSFCCFS-1788] CF tests assume "assert" is available but do not include assert.h Originally submitted by: Hickey, Joseph P. (GSFC-582.0)[VANTAGE SYSTEMS INC] on Tue Nov 16 18:48:45 2021
Original Description:
Some CF test utility functions call "assert" on various items (e.g. Any_file_directive_t_Except).
Several issues with this:
The "assert.h" system header was not included
The condition "ERROR_RETRIEVING_ANY_VALUE" is a constant that is not even 0, so the assert will generally pass (it is boolean true).
Recommendation is to use the UtAssert_Abort() function instead.
The text was updated successfully, but these errors were encountered:
Instead of using the system assert call, use UtAssert_Abort() to report
critical conditions where continuation is not possible.
Note due to limitations of the UtAssert_Abort() function, this uses
UtAssert_Failed() to report any runtime information, followed by
abort with a static/fixed message.
jphickey
added a commit
to jphickey/CF
that referenced
this issue
Dec 1, 2021
Instead of using the system assert call, use UtAssert_Abort() to report
critical conditions where continuation is not possible.
Note due to limitations of the UtAssert_Abort() function, this uses
UtAssert_Failed() to report any runtime information, followed by
abort with a static/fixed message.
This issue was imported from the GSFC issue tracking system
Imported from: [GSFCCFS-1788] CF tests assume "assert" is available but do not include assert.h
Originally submitted by: Hickey, Joseph P. (GSFC-582.0)[VANTAGE SYSTEMS INC] on Tue Nov 16 18:48:45 2021
Original Description:
Some CF test utility functions call "assert" on various items (e.g. Any_file_directive_t_Except).
Several issues with this:
Recommendation is to use the UtAssert_Abort() function instead.
The text was updated successfully, but these errors were encountered: