Skip to content

Comments

Fix #1445, add conditional around priority sem test#1509

Merged
dzbaker merged 1 commit intonasa:mainfrom
jphickey:fix-1445-countsem-prio
Jul 16, 2025
Merged

Fix #1445, add conditional around priority sem test#1509
dzbaker merged 1 commit intonasa:mainfrom
jphickey:fix-1445-countsem-prio

Conversation

@jphickey
Copy link
Contributor

@jphickey jphickey commented Jul 7, 2025

Checklist (Please check before submitting)

Describe the contribution
The multi-thread sem tests (count + bin) have a test that relies on the priority taking effect, that the highest priority thread will get the sem first. However when running as non-root and in permissive mode, the priority is not applied and thus this becomes a race condtion.

For now, just skip this test if priority is not activated.

Fixes #1445

Testing performed
Build and run with and without permissive mode

Expected behavior changes
Count sem and Bin sem tests should pass more reliably, not subject to randomness when permissive mode is used.

System(s) tested on
Debian

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

@jphickey jphickey added the CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) label Jul 7, 2025
The multi-thread sem tests (count + bin) have a test that relies on the
priority taking effect, that the highest priority thread will get the
sem first.  However when running as non-root and in permissive mode, the
priority is not applied and thus this becomes a race condtion.

This adds a test and skips the test if priority is not enabled
@jphickey jphickey force-pushed the fix-1445-countsem-prio branch from 4a10f96 to b16cb4b Compare July 7, 2025 12:59
@jphickey
Copy link
Contributor Author

jphickey commented Jul 7, 2025

The failure in the cppcheck static analysis should be fixed by this: nasa/cFS#855

@dzbaker dzbaker added CCB:Approved Indicates code review and approval by community CCB and removed CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) labels Jul 10, 2025
dzbaker added a commit that referenced this pull request Jul 15, 2025
dzbaker added a commit that referenced this pull request Jul 15, 2025
dzbaker added a commit to nasa/cFS that referenced this pull request Jul 16, 2025
*Combines:*

osal equuleus-rc1+dev123

**Includes:**

*cFE*

*osal*
- nasa/osal#1509
- nasa/osal#1508

*PSP*

Co-authored by: Joseph Hickey <[email protected]>
Co-authored by: Abdullah Al Sharji <[email protected]>
@dzbaker dzbaker mentioned this pull request Jul 16, 2025
2 tasks
@dzbaker dzbaker merged commit a7050cd into nasa:main Jul 16, 2025
15 of 16 checks passed
dzbaker added a commit to nasa/cFS that referenced this pull request Jul 16, 2025
*Combines:*

osal equuleus-rc1+dev123

**Includes:**

*osal*
- nasa/osal#1509
- nasa/osal#1508

Co-authored by: Joseph Hickey <[email protected]>
Co-authored by: Abdullah Al Sharji <[email protected]>
@dzbaker dzbaker added this to the v7.0.0 milestone Feb 12, 2026
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.

count-sem-test, bin-sem-test intermittently fail on POSIX as non-root user

2 participants