nuttx-apps/testing/ltp
xiaoxiang781216 21b28a4126 testing/ltp: silence -Wshift-count-overflow on -Werror builds
The LTP open_posix_testsuite header timespec.h has, since 2019:

  #define TIME_T_MAX (time_t)((1UL << ((sizeof(time_t) << 3) - 1)) - 1)

When time_t is 64 bits (the default after sched/remove-system-time64),
the shift reaches the sign bit of the underlying type and toolchains
emit -Wshift-count-overflow, which the LTP build promotes to a hard
error via -Werror.  This breaks rv-virt/citest and rv-virt/citest64
on CI.

The diagnostic is benign here (TIME_T_MAX itself is correct) and the
defect is in upstream LTP, so disable the warning alongside the other
'should be removed in the future' relaxations until upstream is fixed.

Signed-off-by: xiaoxiang781216 <xiaoxiang781216@gmail.com>
2026-05-14 09:42:44 +02:00
..
.gitignore testing/ltp: add ltp zip file to gitignore 2025-12-05 17:53:57 +01:00
0001-pthread_rwlock_unlock-follow-linux.patch ltp/makefile: apply that patch that to fix the build warning in ltp 2023-09-03 22:12:57 +08:00
0002-Use-ifdef-instead-of-if-for-__linux__.patch ltp/makefile: apply that patch that to fix the build warning in ltp 2023-09-03 22:12:57 +08:00
0003-LTP-Re-init-static-variable-to-avoid-errors-during-m.patch ltp/makefile: apply that patch that to fix the build warning in ltp 2023-09-03 22:12:57 +08:00
0004-test-update-ltp-test-case.patch ltp/makefile: apply that patch that to fix the build warning in ltp 2023-09-03 22:12:57 +08:00
0005-ltp-update-pthread_cond_timedwait-testcase.patch ltp/makefile: apply that patch that to fix the build warning in ltp 2023-09-03 22:12:57 +08:00
0006-test-modified-ltp-rwlock-need-init.patch ltp/makefile: apply that patch that to fix the build warning in ltp 2023-09-03 22:12:57 +08:00
0007-pthread_kill-add-usleep-aviod-semcount-overturn.patch ltp/makefile: apply that patch that to fix the build warning in ltp 2023-09-03 22:12:57 +08:00
0008-test-ltp-fix-ltp_interfaces_sigaction_23_10-deadloop.patch ltp/makefile: apply that patch that to fix the build warning in ltp 2023-09-03 22:12:57 +08:00
0009-ltp-modify-user-code-for-fdcheck-compatibility.patch ltp/makefile: apply that patch that to fix the build warning in ltp 2023-09-03 22:12:57 +08:00
0010-ltp-fix-build-warning.patch ltp/makefile: apply that patch that to fix the build warning in ltp 2023-09-03 22:12:57 +08:00
0011-ltp-fix-the-proc.h-header-file-duplicate-inclusion.patch ltp: fix the link error raised by "proc.h" inclusion error 2024-08-18 20:00:57 +08:00
0012-ltp-fix-build-error.patch ltp: fix the build warning 2024-08-18 20:00:57 +08:00
CMakeLists.txt ltp: close mq_close/3-1 testcase when open CONFIG_FDCHECK 2026-01-15 10:25:21 +08:00
config.h testing: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
Kconfig testing/ltp: Increase Stack Size 2024-12-17 02:20:15 +08:00
Make.defs testing: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
Makefile testing/ltp: silence -Wshift-count-overflow on -Werror builds 2026-05-14 09:42:44 +02:00