nuttx-apps/interpreters/python
Marco Casaroli d3b7722b3d testing/ostest: drop the pre-split fork() fallbacks
The previous commit had task_fork_test() also accept CONFIG_ARCH_HAVE_FORK,
because the nuttx symbols naming the three primitives did not exist yet.  nuttx
now has them, so each test gates on the one primitive it tests and nothing
stands in for anything.

The OSTEST_HAVE_* indirection goes with the fallbacks, as does the
task_fork()->fork() shim in nand_sim_main.c.  The whole-file #ifdef in
task_fork.c goes too:  the build files already decide whether the file is
compiled, which is why fork.c and vfork.c do not carry one either.

task_fork_test() keys on CONFIG_TASK_FORK rather than the capability symbol.
ARCH_HAVE_TASK_FORK says the architecture can clone a task; TASK_FORK says this
build asked for it, and task_fork() is declared only under the latter, so
gating on the capability alone would fail to compile a TASK_FORK=n build.
TESTING_NAND_SIM depends on the same symbol for the same reason.  vfork_test()
and fork_test() have no such split and key on ARCH_HAVE_VFORK and
ARCH_HAVE_FORK directly.

This must not be merged before the nuttx side.

Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com>

Assisted-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-31 14:55:21 +02:00
..
patch interpreters/python: Add ctypes prototype patches for NuttX 2026-05-22 21:51:31 +08:00
.gitignore interpreters/python: create Python's config files dynamically 2025-02-01 23:34:24 +01:00
config.site.in interpreters/python: Add ctypes prototype patches for NuttX 2026-05-22 21:51:31 +08:00
Kconfig interpreters/python: support nuttx-periphery package 2026-06-12 11:56:37 -04:00
Make.defs interpreters/python: Enable using pip to install Python packages 2026-05-18 15:08:30 -04:00
Makefile testing/ostest: drop the pre-split fork() fallbacks 2026-07-31 14:55:21 +02:00
python_wrapper.c interpreters/python: Enable using pip to install Python packages 2026-05-18 15:08:30 -04:00
repack_wheel_add_pyc.py interpreters/python: update repack_wheel script 2026-06-12 11:56:37 -04:00
Setup.local.in interpreters/python: Add ctypes prototype patches for NuttX 2026-05-22 21:51:31 +08:00