]> granicus.if.org Git - strace/commit
tests: fix build and run on alpha with fresh kernel headers
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 15 Jul 2019 17:11:27 +0000 (17:11 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 15 Jul 2019 17:11:27 +0000 (17:11 +0000)
commitd8f95ba4bf13ef96af9e22265b29aad33d391f77
tree291c83d3bc4138bb90e35fb1f91c765cada98634
parent0f2d6384b8f8375cc5807da94150295c0283d10d
tests: fix build and run on alpha with fresh kernel headers

Fix tests on alpha with Linux kernel headers containing commits
v5.1-rc1~160^2~3^2~12 and v5.1-rc1~160^2~3^2~1.

* tests/getegid.c: Include "scno.h".
(main): Use sprintrc.
* tests/geteuid.c: Likewise.
* tests/getppid.c: Likewise.
* tests/getgid.c [__NR_getgid == __NR_getxgid]: Skip.
* tests/getuid.c [__NR_getuid == __NR_getxuid]: Skip.
* tests/getpid.c [__NR_getpid == __NR_getxpid]: Skip.
* tests/umount2.c (__NR_umount2): Remove.
(TEST_SYSCALL_NR): New macro.
(main): Use it instead of __NR_umount2.
* tests/ksysent.sed: Remove new __NR_get[gup]id aliases to traditional
__NR_getx[gup]id names (on alpha).
Prioritize __NR_umount over __NR_umount2, __NR_osf_shmat over __NR_shmat.
* NEWS: Mention these fixes.
NEWS
tests/getegid.c
tests/geteuid.c
tests/getgid.c
tests/getpid.c
tests/getppid.c
tests/getuid.c
tests/ksysent.sed
tests/umount2.c