diff --git a/tests/ipc_msg.c b/tests/ipc_msg.c index 233e5e12aa..0bb858f640 100644 --- a/tests/ipc_msg.c +++ b/tests/ipc_msg.c @@ -55,8 +55,13 @@ * Starting with commit glibc-2.32.9000-149-gbe9b0b9a012780a403a2, * glibc skips msgctl syscall invocations and returns EINVAL * for invalid msgctl commands. + * + * Apparently, this change was later backported to vendor packages, e.g.: + * Thu Mar 18 2021 Carlos O'Donell - 2.28-153 + * - Support SEM_STAT_ANY via semctl. Return EINVAL for unknown commands + * to semctl, msgctl, and shmctl. (#1912670) */ -#if GLIBC_PREREQ_GE(2, 32) +#if GLIBC_PREREQ_GE(2, 28) # define TEST_MSGCTL_BOGUS_CMD 0 #endif diff --git a/tests/ipc_sem.c b/tests/ipc_sem.c index 920e1de705..19ddcc18ff 100644 --- a/tests/ipc_sem.c +++ b/tests/ipc_sem.c @@ -27,8 +27,13 @@ * Starting with commit glibc-2.32.9000-147-ga16d2abd496bd974a882, * glibc skips semctl syscall invocations and returns EINVAL * for invalid semctl commands. + * + * Apparently, this change was later backported to vendor packages, e.g.: + * Thu Mar 18 2021 Carlos O'Donell - 2.28-153 + * - Support SEM_STAT_ANY via semctl. Return EINVAL for unknown commands + * to semctl, msgctl, and shmctl. (#1912670) */ -#if GLIBC_PREREQ_GE(2, 32) +#if GLIBC_PREREQ_GE(2, 28) # define TEST_SEMCTL_BOGUS_CMD 0 #endif