Skip to content

Fix #708, chmod error handling#710

Merged
astrogeco merged 1 commit into
nasa:integration-candidatefrom
jphickey:fix-708-chmod-err-handling
Jan 12, 2021
Merged

Fix #708, chmod error handling#710
astrogeco merged 1 commit into
nasa:integration-candidatefrom
jphickey:fix-708-chmod-err-handling

Conversation

@jphickey

Copy link
Copy Markdown
Contributor

Describe the contribution
Implement better error translations in the OS_FileChmod_Impl() function.
Also corrects a file handle leak.

This makes it return OS_ERR_NOT_IMPLEMENTED when run on a file system that does not have permissions, which in turn causes the unit test to be skipped rather than fail.

Fixes #708

Testing performed
Build and run all unit tests

Expected behavior changes
The chmod test is now skipped on VxWorks rather than failing.

System(s) tested on
Ubuntu 20.04 (native)
VxWorks 6.9 (mcp750)

Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.

@jphickey jphickey force-pushed the fix-708-chmod-err-handling branch from a7fc6e1 to cca5821 Compare December 28, 2020 21:01
Better error translations in the OS_FileChmod_Impl() function.
Also corrects a file handle leak.

This makes it return OS_ERR_NOT_IMPLEMENTED when run on a file
system that does not have permissions, which in turn causes the
unit test to be skipped rather than fail.
@jphickey jphickey force-pushed the fix-708-chmod-err-handling branch from cca5821 to fcfba48 Compare December 28, 2020 21:02
@jphickey jphickey added the CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) label Dec 28, 2020
@skliper skliper added this to the 6.0.0 milestone Dec 29, 2020
@astrogeco astrogeco added CCB-20210106 and removed CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) labels Jan 6, 2021
@astrogeco

Copy link
Copy Markdown
Contributor

CCB 2021-01-06 APPROVED

  • skips the test if it doesn't make sense given the filesystem
  • fixes a leak

@astrogeco astrogeco changed the base branch from main to integration-candidate January 12, 2021 18:11
@astrogeco astrogeco merged commit 2a6d368 into nasa:integration-candidate Jan 12, 2021
@jphickey jphickey deleted the fix-708-chmod-err-handling branch January 27, 2021 14:09
jphickey added a commit to jphickey/osal that referenced this pull request Aug 10, 2022
Add support for a TGTx_PROCESSOR_ID directive, which allows
one to set the default value returned by CFE_PSP_GetProcessorId()
function, rather than assuming the index value from CMake.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

More test failures related to "chmod" implementation

4 participants