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 #708, chmod error handling #710

Merged

Conversation

jphickey
Copy link
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.

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 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
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