Commit Graph

4 Commits

Author SHA1 Message Date
guoshichao 3b32390bb1 ltp/kernel: fix kernel testcases report error on tst_exit()
for kernel testcases that using main() method to execute, when invoke
tst_exit() on execute finished, will report " executed from newlib!"
error, this is caused by two kinds kernel testcases are forbidded linked
together, in Linux this is OK, but for NuttX, this is necssary, so we
choose to modify the NO_NEWLIB_ASSERT macro's implementation, thus to
make kernel testcases can work in NuttX

Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2026-04-20 15:19:22 +08:00
guoshichao 3c2bc1be6e testing/ltp: maintain the lapi/syscalls.h file manually
For the NuttX platform, the system call numbers themselves
are independent of the architecture(arm/x86/risc-v).
Therefore, there is no need to consider the differences
between different architectures(arm/x86/risc-v).
As a result, we can directly maintain them manually instead
of relying on the regen.sh script to generate them
dynamically. This makes it easier for maintenance, upgrading,
and modification.

Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2026-04-20 15:19:21 +08:00
guoshichao 41b48304e8 ltp: add linux struct loop_info struct definition
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2026-04-20 15:19:18 +08:00
guoshichao 7e1c136766 testing/ltp: add linux kernel interface test support
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2026-04-20 15:19:18 +08:00