nuttx-apps/testing/drivers
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
..
crypto crypto: Fix CRC-32 test case 8 2026-07-10 13:02:44 +08:00
drivertest testing/drivers: add watchdog notifier cmocka coverage 2026-07-21 15:37:01 -03:00
fftest testing/drivers/fftest/fftest.c: fix compilation error 2025-11-02 22:33:46 +08:00
nand_sim testing/ostest: drop the pre-split fork() fallbacks 2026-07-31 14:55:21 +02:00
pcitest apps/testing:move {drivertest fftest irtest monkey nand_sim pcitest sd_bench sd_stress sensortest} folders to the new driver folder 2025-01-21 16:22:56 +08:00
rng/nist-sts testing: move nist-sts into drivers/rng directory 2026-01-29 12:08:50 +08:00
rpmsgdev testing: Move rpmsgdev to drivers/rpmsgdev 2025-01-26 09:53:02 -03:00
sd_stress testing/sd_stress: Harden file creation cleanup 2026-05-25 10:28:32 +08:00
ser testing: Add Serial Error Reporting testing app 2025-03-24 21:52:26 +08:00
setest testing: Move crypto/setest to drivers and open_memstream to libc 2025-01-26 07:32:53 +01:00
.gitignore apps/testing:move {drivertest fftest irtest monkey nand_sim pcitest sd_bench sd_stress sensortest} folders to the new driver folder 2025-01-21 16:22:56 +08:00
CMakeLists.txt apps/testing:move {drivertest fftest irtest monkey nand_sim pcitest sd_bench sd_stress sensortest} folders to the new driver folder 2025-01-21 16:22:56 +08:00
Make.defs apps/testing:move {drivertest fftest irtest monkey nand_sim pcitest sd_bench sd_stress sensortest} folders to the new driver folder 2025-01-21 16:22:56 +08:00
Makefile apps/testing: fix typo 2025-05-26 18:56:32 +02:00