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

Refactor OSAL C library stubs #319

Merged
merged 2 commits into from
Dec 31, 2019

Conversation

jphickey
Copy link
Contributor

Describe the contribution

Fix #297

Rather than utilizing a separate "stub-map-to-real.h" file that would need to be injected into the build of the unit under test, this builds the mappings into the mapping into the override files themselves.

The stub functions are then moved into a separate header under a unique name with an OCS_ prefix.

This introduces a number of new files, as what previously required a single header now requires two, but it it eliminates the separate map file.

Testing performed
Build coverage test before and after change, confirm no changes to test operation or result.

Expected behavior changes
None, just a structural change to the source file layout/patterns

System(s) tested on:

  • Ubuntu 18.04 LTS, 64 bit

Contributor Info
Joseph Hickey, Vantage Systems, Inc.

Community contributors
You must attach a signed CLA (required for acceptance) or reference one already submitted

Rather than utilizing a separate "stub-map-to-real.h" file that would
need to be injected into the build of the unit under test, this builds
the mappings into the mapping into the override files themselves.

The stub functions are then moved into a separate header under a
unique name with an OCS_ prefix.

This introduces a number of new files, as what previously required
a single header now requires two, but it it eliminates the separate
map file.
Copy link
Contributor

@skliper skliper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs copyright header in all the headers?

@skliper skliper added the CCB:Approved Indicates code review and approval by community CCB label Dec 18, 2019
@skliper skliper added this to the 5.1.0 milestone Dec 18, 2019
@skliper
Copy link
Contributor

skliper commented Dec 18, 2019

CCB 20191218 - Reviewed and approved for IC

@skliper
Copy link
Contributor

skliper commented Dec 30, 2019

Merge pending copyright header in new files.

Adds a NOSA copyright header to all files touched
as part of the fix for nasa#297.
@skliper skliper changed the base branch from master to ic-20191230 December 31, 2019 16:02
@skliper skliper merged commit d14743c into nasa:ic-20191230 Dec 31, 2019
skliper added a commit that referenced this pull request Dec 31, 2019
Fix #297
Reviewed and approved at 2019-12-18 CCB
@jphickey jphickey deleted the fix-297-substitute-headers branch January 13, 2020 16:05
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants