Skip to content

Conversation

@jeppenodgaard
Copy link

WAIT_FOR calls expr after it has evaluated to true.

Store expr in a variable and return it instead to prevent the additional expr call.

@zephyrbot zephyrbot added area: Base OS Base OS Library (lib/os) area: Tests Issues related to a particular existing or missing test area: Utilities labels Nov 6, 2025
Jeppe Odgaard added 2 commits November 6, 2025 13:30
Test WAIT_FOR calls `expr` the expected number of times.

Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
WAIT_FOR calls `expr` after it has evaluated to true.

Store `expr` in a variable and return it instead to prevent the additional
`expr` call.

Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 6, 2025

@teburd teburd self-assigned this Nov 6, 2025
@teburd
Copy link
Contributor

teburd commented Nov 6, 2025

Assigned myself as I added the macro and maintain this little bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Base OS Base OS Library (lib/os) area: Tests Issues related to a particular existing or missing test area: Utilities

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants