]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
ltp: Skip semctl08 when __USE_TIME64_REDIRECTS is defined
authorJiaying Song <jiaying.song.cn@windriver.com>
Wed, 23 Jul 2025 10:04:07 +0000 (18:04 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 24 Jul 2025 09:47:27 +0000 (10:47 +0100)
commit07410b54660f75465df8d428844893cbd0c295ea
tree7e99bd0a81390977fd498b6ccec66523a580b24c
parent52806c2555d02d4a12e7419520a2aba05f7aaa06
ltp: Skip semctl08 when __USE_TIME64_REDIRECTS is defined

When __USE_TIME64_REDIRECTS is defined, glibc redirects struct semid_ds
to a 64-bit time-safe version that omits the sem_otime_high and
sem_ctime_high fields. As a result, the case becomes invalid, leading to
incorrect behavior.

This patch adds a check to skip the test when __USE_TIME64_REDIRECTS is
defined, ensuring the test only runs when the semid_ds structurally
matches semid64_ds and the *_high fields are accessible.

Signed-off-by: Jiaying Song <jiaying.song.cn@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/ltp/ltp/0001-syscalls-semctl08-Skip-semctl08-when-__USE_TIME64_RE.patch [new file with mode: 0644]
meta/recipes-extended/ltp/ltp_20250130.bb