tests: update ipc_sem.test for new glibc
Starting with commit glibc-2.24-553-g40c0a78, glibc may pass NULL address to semctl like other libcs. * tests/ipc_sem.c (main) [__GLIBC__]: Remove.
This commit is contained in:
parent
75c3844167
commit
e0fc01c0ef
@ -89,11 +89,7 @@ main(void)
|
||||
atexit(cleanup);
|
||||
|
||||
rc = semctl(bogus_semid, bogus_semnum, bogus_cmd, bogus_arg);
|
||||
#ifdef __GLIBC__
|
||||
# define SEMCTL_BOGUS_ARG_FMT "(%#lx|\\[(%#lx|NULL)\\])"
|
||||
#else
|
||||
# define SEMCTL_BOGUS_ARG_FMT "(%#lx|\\[(%#lx|NULL)\\]|NULL)"
|
||||
#endif
|
||||
#define SEMCTL_BOGUS_ARG_FMT "(%#lx|\\[(%#lx|NULL)\\]|NULL)"
|
||||
printf("semctl\\(%d, %d, (IPC_64\\|)?%#x /\\* SEM_\\?\\?\\? \\*/"
|
||||
", " SEMCTL_BOGUS_ARG_FMT "\\) += %s\n",
|
||||
bogus_semid, bogus_semnum, bogus_cmd,
|
||||
|
Loading…
x
Reference in New Issue
Block a user