Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #1196, Add UINT8 and UINT16 equivalents for UtAssert_UINT32_<Comparison> macros #1202

Merged
merged 2 commits into from
Jan 21, 2022
Merged

Fix #1196, Add UINT8 and UINT16 equivalents for UtAssert_UINT32_<Comparison> macros #1202

merged 2 commits into from
Jan 21, 2022

Conversation

kurtjd
Copy link
Contributor

@kurtjd kurtjd commented Jan 9, 2022

Describe the contribution

Adds UINT8 and UINT16 equivalents for UtAssert_UINT32_ macros.

Testing performed

  1. Built according to steps listed in README
  2. Performed tests on each new macro with relevant input to ensure correctness (for example, passing 0 and 255 + 1 to UtAssert_UINT8_EQ and verifying that test passed).

Expected behavior changes
Allows for users to call UtAssert comparisons on unsigned 8 and 16-bit values and provides expected wrap-around behavior without users needing to explicitly cast.

For example, UtAssert_UINT8_EQ(0, 255 + 1) outputs the following:
Compare UINT8: 0 (0) == 255 + 1 (0)

System(s) tested on

  • Hardware: ThinkPad t480s
  • OS: Pop!_OS 21.10 64-bit

Additional context
N/A

Third party code
N/A

Contributor Info - All information REQUIRED for consideration of pull request
Kurtis Dinelle ([email protected])
Student at Oregon State University
CLA already on file.

@kurtjd kurtjd changed the title Fix 1196 add uint8 and uint16 equivalents for ut assert uint32 macros Fix #1196, Add uint8 and uint16 equivalents for ut assert uint32 macros Jan 9, 2022
@kurtjd kurtjd changed the title Fix #1196, Add uint8 and uint16 equivalents for ut assert uint32 macros Fix #1196, Add UINT8 and UINT16 equivalents for UtAssert_UINT32<Comparison> macros Jan 9, 2022
@kurtjd kurtjd changed the title Fix #1196, Add UINT8 and UINT16 equivalents for UtAssert_UINT32<Comparison> macros Fix #1196, Add UINT8 and UINT16 equivalents for UtAssert_UINT32_<Comparison> macros Jan 9, 2022
@skliper skliper added the CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) label Jan 10, 2022
@astrogeco astrogeco added this to the Draco milestone Jan 19, 2022
@astrogeco astrogeco removed the CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) label Jan 19, 2022
@astrogeco
Copy link
Contributor

CCB:2022-01-19 APPROVED

@astrogeco astrogeco added the CCB:Approved Indicates code review and approval by community CCB label Jan 19, 2022
astrogeco added a commit to nasa/cFS that referenced this pull request Jan 19, 2022
*osal*

nasa/osal#1206, Search global and local symbol tables

nasa/osal#1201, Add missing space to UtAssert_STUB_COUNT

nasa/osal#1202, Add UINT8 and UINT16 equivalents for UtAssert_UINT32_<Comparison> macros

nasa/osal#1203, correct warnings on gcc11

nasa/osal#1211, Set output in OS_stat handler

*Authors*

skliper
jphickey
kurtjd
astrogeco added a commit to nasa/cFS that referenced this pull request Jan 20, 2022
*osal*

nasa/osal#1206, Search global and local symbol tables

nasa/osal#1201, Add missing space to UtAssert_STUB_COUNT

nasa/osal#1202, Add UINT8 and UINT16 equivalents for UtAssert_UINT32_<Comparison> macros

nasa/osal#1203, correct warnings on gcc11

nasa/osal#1211, Set output in OS_stat handler

*Authors*

skliper
jphickey
kurtjd
astrogeco added a commit to nasa/cFS that referenced this pull request Jan 20, 2022
*osal*

nasa/osal#1206, Search global and local symbol tables

nasa/osal#1201, Add missing space to UtAssert_STUB_COUNT

nasa/osal#1202, Add UINT8 and UINT16 equivalents for UtAssert_UINT32_<Comparison> macros

nasa/osal#1203, correct warnings on gcc11

nasa/osal#1211, Set output in OS_stat handler

nasa/osal#1190, Reuse CodeQL, Static Analysis, Format Check

*Authors*

skliper
jphickey
kurtjd
@astrogeco astrogeco merged commit 3d1a7e4 into nasa:main Jan 21, 2022
astrogeco added a commit to nasa/cFS that referenced this pull request Jan 21, 2022
Combines:

nasa/cFE#2019, cFE v7.0.0-rc4+dev60
nasa/osal#1212, osal v6.0.0-rc4+dev29
nasa/sch_lab#105, sch_lab v2.5.0-rc4+dev13

Includes:

*cFE*

nasa/cFE#2033, Add CFE_ES_AppInfo_t element documentation
nasa/cFE#2011, Reuse CodeQL, Static Analysis, and Format Check
nasa/cFE#2015, Add FS Functional test
nasa/cFE#2012, Fix mismatched foreach in cmake function
nasa/cFE#2013, Improved code highlighting in cFE Application Developers Guide
nasa/cFE#2027, CFE_FS_ParseInputFileNameEx avoid uninit var
nasa/cFE#2031, Fix array length calculation for perf structs
nasa/cFE#2023, Limit SBR UT loops
nasa/cFE#2029, Initialize BlockData in ES UT
nasa/cFE#2025, Fix osal_id_t type conversion in es_UT.c

*osal*

nasa/osal#1206, Search global and local symbol tables
nasa/osal#1201, Add missing space to UtAssert_STUB_COUNT
nasa/osal#1202, Add UINT8 and UINT16 equivalents for UtAssert_UINT32_<Comparison> macros
nasa/osal#1203, correct warnings on gcc11
nasa/osal#1211, Set output in OS_stat handler
nasa/osal#1190, Reuse CodeQL, Static Analysis, Format Check

*other*

nasa/sch_lab#104, Add option to configure base tick rate

*Continuous Integration Updates*

nasa/PSP#317, Reuse CodeQL, Static Analysis, and Format Check

nasa/sample_lib#72, Reuse CodeQL, Static Analysis, and Format Check
nasa/sample_app#162, Reuse CodeQL, Static Analysis, and Format Check
nasa/ci_lab#100, Reuse CodeQL, Static Analysis, and Format Check
nasa/to_lab#111, Reuse CodeQL, Static Analysis, and Format Check

nasa/tblCRCTool#59, Reuse CodeQL, Static Analysis, and Format Check
nasa/elf2cfetbl#97, Reuse CodeQL, Static Analysis, and Format Check
nasa/cFS-GroundSystem#200, Reuse CodeQL, Static Analysis, and Format Check

Co-authored-by: Ariel Adams     <[email protected]>
Co-authored-by: Jacob Hageman   <[email protected]>
Co-authored-by: Joseph Hickey   <[email protected]>
Co-authored-by: Kurtis Dinelle  <[email protected]>
Co-authored-by: Paul            <[email protected]>
Co-authored-by: Adrien Chardon  <[email protected]>
@dmknutsen
Copy link
Contributor

@kurtjd can you fill out a CLA for your contribution? We are trying to submit an NTR for the Draco development cycle.
https://github.com/nasa/cFS/blob/main/CONTRIBUTING.md

@kurtjd
Copy link
Contributor Author

kurtjd commented Oct 21, 2022

@dmknutsen No problem. I've sent my signed copy to the email address listed on the form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CCB:Approved Indicates code review and approval by community CCB draco-rc1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add UINT8 and UINT16 equivalents for UtAssert_UINT32_<Comparison> macros
4 participants