Repository navigation
Conversation
anjiahao1
force-pushed
the
20261130_cmocka-posix-spawn
branch
from
November 30, 2026 04:38
6654f70 to
9fc7770
Compare
GUIDINGLI
previously approved these changes
Nov 30, 2026
Contributor
|
CI fail d76a018 Merge 9fc7770 into 9a2c689 |
anjiahao1
force-pushed
the
20261130_cmocka-posix-spawn
branch
from
November 30, 2026 05:07
9fc7770 to
d6fe9d8
Compare
xiaoxiang781216
previously approved these changes
Nov 30, 2026
exec_builtin() replaces the calling task with the test program, so the only thing the runner can do afterwards is wait for the pid it returned, and the environment and argument list are fixed by the builtin interface. Start each test with posix_spawn() instead and wait for the pid it provides; the test runs as a separate task and the runner keeps its own context. Keep the exec_builtin() path when CONFIG_LIBC_EXECFUNCS is not selected, so the configurations that do not provide posix_spawn() still build and run the suite. Signed-off-by: anjiahao <anjiahao@xiaomi.com>
anjiahao1
force-pushed
the
20261130_cmocka-posix-spawn
branch
from
November 30, 2026 13:13
d6fe9d8 to
64d4d32
Compare
xiaoxiang781216
approved these changes
Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Start each cmocka test program with posix_spawn().
exec_builtin() replaces the calling task with the test program, so the
runner can only wait for the pid it happens to return, and the
environment and argument list are fixed by the builtin interface.
Start each test with posix_spawn() instead and wait for the pid it
provides: the test runs as a separate task, the runner keeps its own
context, and the environment can be passed. Add the LIBC_EXECFUNCS
dependency that the spawn call needs.
Impact
Testing
Build host: Linux x86_64, gcc 13.3.
The build completes; the log shows both the runner and the library
compiled:
The cmocka sources are downloaded by the existing Makefile rule.
PR verification