During execution, ntpclient may attempt to synchronize the time, causing incorrect test results. Here, we use CLOCK_MONOTONIC to avoid this problem.
Once the smooth time correction has been implemented, this commit can be reverted.
Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
/usr/bin/ld: /home/guoshichao/work_profile/vela_os/vela_sim_devsystem/cmake_out/vela_vela/apps/testing/ltp/libapps_ltp_syscalls_nftw_nftw64.a(nftw64.c.o):(.bss.__odr_asan.next_fd+0x0): multiple definition of `__odr_asan.next_fd'; /home/guoshichao/work_profile/vela_os/vela_sim_devsystem/cmake_out/vela_vela/apps/testing/ltp/libapps_ltp_syscalls_nftw_nftw.a(nftw.c.o):(.bss.__odr_asan.next_fd+0x0): first defined here
/usr/bin/ld: /home/guoshichao/work_profile/vela_os/vela_sim_devsystem/cmake_out/vela_vela/apps/testing/ltp/libapps_ltp_syscalls_nftw_nftw64.a(nftw64.c.o):(.bss.__odr_asan.visit+0x0): multiple definition of `__odr_asan.visit'; /home/guoshichao/work_profile/vela_os/vela_sim_devsystem/cmake_out/vela_vela/apps/testing/ltp/libapps_ltp_syscalls_nftw_nftw.a(nftw.c.o):(.bss.__odr_asan.visit+0x0): first defined here
/usr/bin/ld: /home/guoshichao/work_profile/vela_os/vela_sim_devsystem/cmake_out/vela_vela/apps/testing/ltp/libapps_ltp_syscalls_nftw_nftw64.a(nftw64.c.o):(.bss.__odr_asan.dirlist+0x0): multiple definition of `__odr_asan.dirlist'; /home/guoshichao/work_profile/vela_os/vela_sim_devsystem/cmake_out/vela_vela/apps/testing/ltp/libapps_ltp_syscalls_nftw_nftw.a(nftw.c.o):(.bss.__odr_asan.dirlist+0x0): first defined here
/usr/bin/ld: /home/guoshichao/work_profile/vela_os/vela_sim_devsystem/cmake_out/vela_vela/apps/testing/ltp/libapps_ltp_syscalls_nftw_nftw64.a(nftw64.c.o):(.bss.__odr_asan.ebuf+0x0): multiple definition of `__odr_asan.ebuf'; /home/guoshichao/work_profile/vela_os/vela_sim_devsystem/cmake_out/vela_vela/apps/testing/ltp/libapps_ltp_syscalls_nftw_nftw.a(nftw.c.o):(.bss.__odr_asan.ebuf+0x0): first defined here
/usr/bin/ld: /home/guoshichao/work_profile/vela_os/vela_sim_devsystem/cmake_out/vela_vela/apps/testing/ltp/libapps_ltp_syscalls_nftw_nftw64.a(nftw64.c.o):(.bss.__odr_asan.s2+0x0): multiple definition of `__odr_asan.s2'; /home/guoshichao/work_profile/vela_os/vela_sim_devsystem/cmake_out/vela_vela/apps/testing/ltp/libapps_ltp_syscalls_nftw_nftw.a(nftw.c.o):(.bss.__odr_asan.s2+0x0): first defined here
/usr/bin/ld: /home/guoshichao/work_profile/vela_os/vela_sim_devsystem/cmake_out/vela_vela/apps/testing/ltp/libapps_ltp_syscalls_nftw_nftw64.a(nftw64.c.o):(.bss.__odr_asan.temp+0x0): multiple definition of `__odr_asan.temp'; /home/guoshichao/work_profile/vela_os/vela_sim_devsystem/cmake_out/vela_vela/apps/testing/ltp/libapps_ltp_syscalls_nftw_nftw.a(nftw.c.o):(.bss.__odr_asan.temp+0x0): first defined here
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
ltp/testcases/kernel/syscalls/nftw/nftw64.h:112:50: warning: 'struct stat64' declared inside parameter list will not be visible outside of this definition or declaration
112 | extern int test_func3(const char *, const struct stat64 *, int, struct FTW *);
| ^~~~~~
Signed-off-by: wangzhi16 <wangzhi16@xiaomi.com>
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>
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>
Summary:
Added a limit to CJSON_NESTING_LIMIT. The default value is 1000, which can cause stack overflow in some test cases.
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
in file included from /home/work/ssd1/workspace/mirtos-ci/nuttx/../apps/frameworks/quickapp/src/framework/cdp/cdpprotocol.h:12,
from /home/work/ssd1/workspace/mirtos-ci/nuttx/../apps/frameworks/quickapp/src/framework/cdp/heapprofiler.h:3,
from /home/work/ssd1/workspace/MiRTOS-CI/apps/frameworks/quickapp/src/jse/quickjs/jse_quickjs.cpp:11:
/home/work/ssd1/workspace/MiRTOS-CI/nuttx/../apps/frameworks/quickapp/src/aiotjs.h:10:10: fatal error: app_interface.h: No such file or directory
10 | #include "app_interface.h"
| ^~~~~~~~~~~~~~~~~
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
When initialized for the first time, the memset parameter is smaller than the actual buffer size
Causes subsequent accesses to uninitialized memory in the array
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This configuration is added to put LVGL into PSRAM for execution, and the lv_*.o file needs to be matched in the link script. Since LTO optimization will cause the file name to be modified, resulting in a matching failure, it will only take effect if LTO optimization is removed during compilation.
Link script modification: https://gerrit.odm.mioffice.cn/c/velaos/vendor/bes/framework/services_1502x/+/680741
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
Aider is AI pair programmer: https://aider.chat
The .aider* files is not a part of NuttX but used by
Aider as temporary files.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>