linux-test-project / ltp

Linux Test Project (mailing list: https://lists.linux.it/listinfo/ltp)
https://linux-test-project.readthedocs.io/
GNU General Public License v2.0
2.31k stars 1.01k forks source link

The testcase ”ltp/testcases/kernel/syscalls/ipc/shmctl/shmctl06.c“ is unreasonable #992

Closed luyuantaolll closed 1 year ago

luyuantaolll commented 1 year ago

Test requires structure shmid64 ds has time High field, but it seems that this field is only available in_ BITS PER LONG != 64. Now the system seems to define the long field as 64bit, Maybe we need to modify the test case to test different shmid64 ds. 1668482413280

metan-ucw commented 1 year ago

The test is guarded by HAVE_SHMID64_DS_TIME_HIGH that is defined in the include/lapi/shmbuf.h only if __BITS_PER_LONG != 64 so as far as I can tell everything is working as expected.