]> 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:05:07 +0000 (18:05 +0800)
committerSteve Sakoman <steve@sakoman.com>
Wed, 30 Jul 2025 16:01:16 +0000 (09:01 -0700)
commit8bea495b4945e24b43398f40d634d7fdb73e981a
tree23aa66016594e46cd2ce33e72505581324359012
parent32920c292d96d3f66e50e5cd55bb05bd3adc01e8
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: Steve Sakoman <steve@sakoman.com>
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