]> granicus.if.org Git - strace/commit
tests: add ksysent.test
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 10 Dec 2015 02:06:25 +0000 (02:06 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 10 Dec 2015 02:06:25 +0000 (02:06 +0000)
commitbab4ef4272cd2596c7390b34ea8acc086ee8fdb2
tree0aeec6f3e12bc49483e0804edf14d517f5e8ade1
parenta5c16b865625189ddb041be43fef89851944f0e2
tests: add ksysent.test

Check that syscall names and numbers defined in syscallent files
match kernel __NR_* constants defined by <asm/unistd.h>.

Tested on various platforms, including the following combinations
of architectures and kernel headers:

x86_64: 4.4-rc, 4.3, 4.2, 4.1, 3.19, 3.17, 3.16, 3.12, 3.11,
3.10-rhel, 2.6.32-rhel, 2.6.27-sle, 2.6.18-rhel
i386: 4.4-rc, 4.3, 4.2, 4.1, 3.19, 3.17, 3.16, 3.11,
3.10-rhel, 2.6.32-rhel, 2.6.27-sle, 2.6.18-rhel
aarch64: 4.4-rc
alpha: 4.3
arm eabi: 4.4-rc, 4.2, 4.1
hppa: 3.18
ia64: 3.18
mips o32: 4.1
ppc: 3.18
ppc64: 3.10-rhel, 2.6.32-rhel
s390: 3.18
s390x: 3.18
sparc: 4.1
sparc: 3.18
x32: 3.19

The only platform which is known at this moment to fail the test
is CentOS-5 provided by OBS.  On x86_64 instance it fails with
error: "prlimit64" syscall #300 is "fanotify_init" in syscallent.h
and on i586 it similarly fails with
error: "prlimit64" syscall #338 is "fanotify_init" in syscallent.h
So this is a real platform bug that is not likely to be worked around
on the strace side.

* tests/ksysent.c: New file.
* tests/ksysent.sed: Likewise.
* tests/ksysent.test: New test.
* tests/Makefile.am (AM_CPPFLAGS): Add -I$(builddir).
(check_PROGRAMS): Add ksysent.
(TESTS): Add ksysent.test.
(EXTRA_DIST): Add ksysent.sed.
(ksysent.h): New rule.
(BUILT_SOURCES, CLEANFILES): Add ksysent.h.
* tests/.gitignore: Add ksysent.
tests/.gitignore
tests/Makefile.am
tests/ksysent.c [new file with mode: 0644]
tests/ksysent.sed [new file with mode: 0644]
tests/ksysent.test [new file with mode: 0755]