nuttx-apps/testing/fs
Marco Casaroli 6e61ce7cb7 examples/fdpicxip, testing/fs/xipfs: A DT_NEEDED library is one instance.
Both the demo and the test asserted that each running instance of a module
gets its own copy of a library named in DT_NEEDED: two instances adding
their own seed each saw a total of seed*3.

That was true of the loader that walked DT_NEEDED itself.  The loader now
hands the work to dlopen(), which returns the object already in the module
registry rather than loading a second copy of it, so there is one library
and one set of its globals, shared by every module that names it.  The
module's own data stays private per instance, because exec() loads the
module afresh each time.

What an instance can still assert on its own is that every add it made
landed in the library, so that is what it checks; the totals interleave and
the final one counts both.  The test additionally checks the consequences:
the library is pinned once rather than once per instance, and its
destructor runs once, at the last close, holding what both instances built
up.

USER_FAIL_PRIVATE becomes USER_FAIL_SHARED rather than gaining a
companion.  The bit is a private protocol between cxxuser.cpp, which sets
it, and testing/fs/xipfs, which reads it; nothing else names it, and the
property it used to report no longer exists.

Assisted-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com>
2026-08-07 11:24:32 +08:00
..
epoll include/debug.h: Use <nuttx/debug.h> in apps 2026-04-11 10:39:27 -03:00
fatutf8 apps/testing:move epoll, fatutf8 ... folders to the new fs folder 2025-01-22 01:34:00 +08:00
fdsantest apps/testing:move epoll, fatutf8 ... folders to the new fs folder 2025-01-22 01:34:00 +08:00
fstest !compiler: drop CONFIG_HAVE_LONG_LONG and require long long support 2026-05-11 17:38:32 +08:00
memfd testing/fs: add testcase to test the stability of memfd. 2026-01-22 19:53:39 +08:00
mtd_config_fs include/debug.h: Use <nuttx/debug.h> in apps 2026-04-11 10:39:27 -03:00
nxffs include/debug.h: Use <nuttx/debug.h> in apps 2026-04-11 10:39:27 -03:00
smart include/debug.h: Use <nuttx/debug.h> in apps 2026-04-11 10:39:27 -03:00
smart_test apps: Fix additional open() arguments. 2026-05-22 13:39:04 +08:00
xipfs examples/fdpicxip, testing/fs/xipfs: A DT_NEEDED library is one instance. 2026-08-07 11:24:32 +08:00
.gitignore apps/testing:move epoll, fatutf8 ... folders to the new fs folder 2025-01-22 01:34:00 +08:00
CMakeLists.txt apps/testing:move epoll, fatutf8 ... folders to the new fs folder 2025-01-22 01:34:00 +08:00
Make.defs apps/testing:move epoll, fatutf8 ... folders to the new fs folder 2025-01-22 01:34:00 +08:00
Makefile apps/testing:move epoll, fatutf8 ... folders to the new fs folder 2025-01-22 01:34:00 +08:00