Skip to content

testing/ostest: accept -ENOENT from work_cancel() for unqueued work - #3790

Merged
acassis merged 1 commit into
apache:masterfrom
raiden00pl:fix_ostest_wqueue
Sep 17, 2026
Merged

acassis merged 1 commit into
apache:masterfrom
raiden00pl:fix_ostest_wqueue

Conversation

@raiden00pl

Copy link
Copy Markdown
Member

Summary

Since nuttx commit 5a209a853e ("sched/wqueue: restore -ENOENT from work_cancel() for unqueued work") work_cancel() and work_cancel_wq() return -ENOENT when the work is not queued. The tester thread queues work with zero delay, so the worker may already have consumed it by the time it is cancelled and the ASSERT(ret == OK) fires;

Accept -ENOENT there and expect it when cancelling idle work in the API validation test.

Impact

fix CI

Testing

CI

Since nuttx commit 5a209a853e ("sched/wqueue: restore -ENOENT from
work_cancel() for unqueued work") work_cancel() and work_cancel_wq()
return -ENOENT when the work is not queued. The tester thread queues
work with zero delay, so the worker may already have consumed it by the
time it is cancelled and the ASSERT(ret == OK) fires;

Accept -ENOENT there and expect it when cancelling idle work in
the API validation test.

Signed-off-by: raiden00pl <raiden00@railab.me>
@xiaoxiang781216

Copy link
Copy Markdown
Contributor

@acassis please merge this patch to unblock ci.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants