From 0c8853c3c39fe11f1a80456e744d7db861c39df2 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Sat, 2 Jan 2016 13:28:43 +0000 Subject: [PATCH] tests: include tests.h instead of config.h Automatically edit tests/*.c files using the following perl one-liner: perl -0777 -pi -e \ 's/#ifdef HAVE_CONFIG_H\n# include "config\.h"\n#endif\n*/#include "tests.h"\n/' \ tests/*.c --- tests/_newselect.c | 5 +---- tests/adjtimex.c | 5 +---- tests/aio.c | 5 +---- tests/bpf.c | 5 +---- tests/clock_nanosleep.c | 5 +---- tests/epoll_create1.c | 5 +---- tests/eventfd.c | 5 +---- tests/execveat.c | 5 +---- tests/fanotify_mark.c | 5 +---- tests/fcntl.c | 5 +---- tests/fcntl64.c | 5 +---- tests/file_handle.c | 5 +---- tests/fork-f.c | 5 +---- tests/fstat.c | 5 +---- tests/fstat64.c | 5 +---- tests/fstatat64.c | 5 +---- tests/ftruncate.c | 5 +---- tests/ftruncate64.c | 5 +---- tests/getdents.c | 5 +---- tests/getdents64.c | 5 +---- tests/getrandom.c | 5 +---- tests/ioctl.c | 5 +---- tests/ip_mreq.c | 4 +--- tests/ipc_msgbuf.c | 5 +---- tests/llseek.c | 5 +---- tests/lseek.c | 5 +---- tests/lstat.c | 5 +---- tests/lstat64.c | 5 +---- tests/membarrier.c | 5 +---- tests/memfd_create.c | 5 +---- tests/mlock2.c | 5 +---- tests/mmap.c | 5 +---- tests/mmsg.c | 4 +--- tests/mq.c | 5 +---- tests/newfstatat.c | 5 +---- tests/oldselect.c | 5 +---- tests/pc.c | 4 +--- tests/pipe.c | 5 +---- tests/ppoll.c | 5 +---- tests/readdir.c | 5 +---- tests/readlink.c | 5 +---- tests/readlinkat.c | 5 +---- tests/restart_syscall.c | 5 +---- tests/sched_xetattr.c | 5 +---- tests/seccomp.c | 5 +---- tests/select.c | 5 +---- tests/sendfile.c | 5 +---- tests/sendfile64.c | 5 +---- tests/set_ptracer_any.c | 4 +--- tests/signalfd.c | 5 +---- tests/sigreturn.c | 4 +--- tests/stat.c | 5 +---- tests/stat64.c | 5 +---- tests/statfs.c | 4 +--- tests/time.c | 5 +---- tests/timer_create.c | 5 +---- tests/timer_xettime.c | 5 +---- tests/timerfd_xettime.c | 5 +---- tests/times-fail.c | 5 +---- tests/times.c | 5 +---- tests/truncate.c | 5 +---- tests/truncate64.c | 5 +---- tests/uid.c | 4 +--- tests/uid16.c | 4 +--- tests/uid32.c | 4 +--- tests/uio.c | 4 +--- tests/userfaultfd.c | 5 +---- tests/utimensat.c | 5 +---- tests/vfork-f.c | 5 +---- tests/wait.c | 5 +---- tests/xattr.c | 5 +---- tests/xet_robust_list.c | 5 +---- 72 files changed, 72 insertions(+), 278 deletions(-) diff --git a/tests/_newselect.c b/tests/_newselect.c index 3722ccf3..0c9aeea7 100644 --- a/tests/_newselect.c +++ b/tests/_newselect.c @@ -1,7 +1,4 @@ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #undef TEST_SYSCALL_NAME diff --git a/tests/adjtimex.c b/tests/adjtimex.c index 68e298fe..316cefbb 100644 --- a/tests/adjtimex.c +++ b/tests/adjtimex.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include #include diff --git a/tests/aio.c b/tests/aio.c index e3a073a2..6f071b37 100644 --- a/tests/aio.c +++ b/tests/aio.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include #include diff --git a/tests/bpf.c b/tests/bpf.c index daa4e74b..eafd801a 100644 --- a/tests/bpf.c +++ b/tests/bpf.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include #include diff --git a/tests/clock_nanosleep.c b/tests/clock_nanosleep.c index ff503c27..1b24f054 100644 --- a/tests/clock_nanosleep.c +++ b/tests/clock_nanosleep.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include #include diff --git a/tests/epoll_create1.c b/tests/epoll_create1.c index 66bcf9eb..6e5ef471 100644 --- a/tests/epoll_create1.c +++ b/tests/epoll_create1.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include #include diff --git a/tests/eventfd.c b/tests/eventfd.c index 5de0c221..ce83f476 100644 --- a/tests/eventfd.c +++ b/tests/eventfd.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include #include diff --git a/tests/execveat.c b/tests/execveat.c index 7d7257dd..e268d873 100644 --- a/tests/execveat.c +++ b/tests/execveat.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include diff --git a/tests/fanotify_mark.c b/tests/fanotify_mark.c index 7160acdb..08b4ffef 100644 --- a/tests/fanotify_mark.c +++ b/tests/fanotify_mark.c @@ -1,7 +1,4 @@ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #if defined HAVE_SYS_FANOTIFY_H && defined HAVE_FANOTIFY_MARK # include int diff --git a/tests/fcntl.c b/tests/fcntl.c index d4df77d8..64e7c9ee 100644 --- a/tests/fcntl.c +++ b/tests/fcntl.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #ifdef __NR_fcntl diff --git a/tests/fcntl64.c b/tests/fcntl64.c index 7ffb07d3..427630b6 100644 --- a/tests/fcntl64.c +++ b/tests/fcntl64.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #ifdef __NR_fcntl64 diff --git a/tests/file_handle.c b/tests/file_handle.c index fb5b93df..f52b6200 100644 --- a/tests/file_handle.c +++ b/tests/file_handle.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include #include diff --git a/tests/fork-f.c b/tests/fork-f.c index a1a45b9e..68c88460 100644 --- a/tests/fork-f.c +++ b/tests/fork-f.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include #include diff --git a/tests/fstat.c b/tests/fstat.c index b75b5502..1b315767 100644 --- a/tests/fstat.c +++ b/tests/fstat.c @@ -1,7 +1,4 @@ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #undef TEST_SYSCALL_NAME diff --git a/tests/fstat64.c b/tests/fstat64.c index e64cf085..44913d36 100644 --- a/tests/fstat64.c +++ b/tests/fstat64.c @@ -1,7 +1,4 @@ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #undef TEST_SYSCALL_NAME diff --git a/tests/fstatat64.c b/tests/fstatat64.c index 0facc3f5..dbb913f4 100644 --- a/tests/fstatat64.c +++ b/tests/fstatat64.c @@ -1,7 +1,4 @@ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #undef TEST_SYSCALL_NAME diff --git a/tests/ftruncate.c b/tests/ftruncate.c index d10a90d8..d910e71e 100644 --- a/tests/ftruncate.c +++ b/tests/ftruncate.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #ifdef __NR_ftruncate diff --git a/tests/ftruncate64.c b/tests/ftruncate64.c index ee865b13..16b68c2b 100644 --- a/tests/ftruncate64.c +++ b/tests/ftruncate64.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #ifdef __NR_ftruncate64 diff --git a/tests/getdents.c b/tests/getdents.c index 6df32024..eee91a97 100644 --- a/tests/getdents.c +++ b/tests/getdents.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #ifdef __NR_getdents diff --git a/tests/getdents64.c b/tests/getdents64.c index 0f09c138..6e2b2577 100644 --- a/tests/getdents64.c +++ b/tests/getdents64.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #ifdef __NR_getdents64 diff --git a/tests/getrandom.c b/tests/getrandom.c index f15ef74c..4f140679 100644 --- a/tests/getrandom.c +++ b/tests/getrandom.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include #include diff --git a/tests/ioctl.c b/tests/ioctl.c index bd3e37d0..3840f696 100644 --- a/tests/ioctl.c +++ b/tests/ioctl.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include #include diff --git a/tests/ip_mreq.c b/tests/ip_mreq.c index a83b8787..4faa11f6 100644 --- a/tests/ip_mreq.c +++ b/tests/ip_mreq.c @@ -25,9 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif +#include "tests.h" #include #include #include diff --git a/tests/ipc_msgbuf.c b/tests/ipc_msgbuf.c index 3e1b1457..1cb42fde 100644 --- a/tests/ipc_msgbuf.c +++ b/tests/ipc_msgbuf.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include #include diff --git a/tests/llseek.c b/tests/llseek.c index 343ab83e..8ff5de91 100644 --- a/tests/llseek.c +++ b/tests/llseek.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #ifdef __NR__llseek diff --git a/tests/lseek.c b/tests/lseek.c index 7d4bd35c..526a3ae3 100644 --- a/tests/lseek.c +++ b/tests/lseek.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #ifdef __NR_lseek diff --git a/tests/lstat.c b/tests/lstat.c index d759dd39..f477d8e3 100644 --- a/tests/lstat.c +++ b/tests/lstat.c @@ -1,7 +1,4 @@ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #undef TEST_SYSCALL_NAME diff --git a/tests/lstat64.c b/tests/lstat64.c index 4c0713f8..4ffc7c9f 100644 --- a/tests/lstat64.c +++ b/tests/lstat64.c @@ -1,7 +1,4 @@ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #undef TEST_SYSCALL_NAME diff --git a/tests/membarrier.c b/tests/membarrier.c index f32d2ec2..54349bee 100644 --- a/tests/membarrier.c +++ b/tests/membarrier.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include #include diff --git a/tests/memfd_create.c b/tests/memfd_create.c index 6b983c37..98c30641 100644 --- a/tests/memfd_create.c +++ b/tests/memfd_create.c @@ -1,7 +1,4 @@ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include diff --git a/tests/mlock2.c b/tests/mlock2.c index de5f423d..4b0b97ea 100644 --- a/tests/mlock2.c +++ b/tests/mlock2.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include #include diff --git a/tests/mmap.c b/tests/mmap.c index 9c6ee27b..8639ce67 100644 --- a/tests/mmap.c +++ b/tests/mmap.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include #include diff --git a/tests/mmsg.c b/tests/mmsg.c index 978fdec2..45537016 100644 --- a/tests/mmsg.c +++ b/tests/mmsg.c @@ -26,9 +26,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif +#include "tests.h" #include #include #include diff --git a/tests/mq.c b/tests/mq.c index bf47ef72..2953d16c 100644 --- a/tests/mq.c +++ b/tests/mq.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #ifdef HAVE_MQUEUE_H #include diff --git a/tests/newfstatat.c b/tests/newfstatat.c index 10a88e02..88ff9830 100644 --- a/tests/newfstatat.c +++ b/tests/newfstatat.c @@ -1,7 +1,4 @@ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #undef TEST_SYSCALL_NAME diff --git a/tests/oldselect.c b/tests/oldselect.c index 5f9d5aaa..f2ed9ba7 100644 --- a/tests/oldselect.c +++ b/tests/oldselect.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include #include diff --git a/tests/pc.c b/tests/pc.c index 7d64ae02..aef0bc39 100644 --- a/tests/pc.c +++ b/tests/pc.c @@ -25,9 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif +#include "tests.h" #include #include #include diff --git a/tests/pipe.c b/tests/pipe.c index 3f740a04..f7728434 100644 --- a/tests/pipe.c +++ b/tests/pipe.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include #include diff --git a/tests/ppoll.c b/tests/ppoll.c index 2b9194b9..84a957f3 100644 --- a/tests/ppoll.c +++ b/tests/ppoll.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include #include diff --git a/tests/readdir.c b/tests/readdir.c index 1beeda16..2b161d3e 100644 --- a/tests/readdir.c +++ b/tests/readdir.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #ifdef __NR_readdir diff --git a/tests/readlink.c b/tests/readlink.c index d1390f27..76bab319 100644 --- a/tests/readlink.c +++ b/tests/readlink.c @@ -26,10 +26,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include #include diff --git a/tests/readlinkat.c b/tests/readlinkat.c index 76d0efd9..ccfc32da 100644 --- a/tests/readlinkat.c +++ b/tests/readlinkat.c @@ -26,10 +26,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include #include diff --git a/tests/restart_syscall.c b/tests/restart_syscall.c index 3989a84e..860f1688 100644 --- a/tests/restart_syscall.c +++ b/tests/restart_syscall.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include #include diff --git a/tests/sched_xetattr.c b/tests/sched_xetattr.c index 4b060ced..02061f47 100644 --- a/tests/sched_xetattr.c +++ b/tests/sched_xetattr.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include #include diff --git a/tests/seccomp.c b/tests/seccomp.c index 77d69805..54a5d057 100644 --- a/tests/seccomp.c +++ b/tests/seccomp.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include #include diff --git a/tests/select.c b/tests/select.c index 95bc6326..09294662 100644 --- a/tests/select.c +++ b/tests/select.c @@ -1,7 +1,4 @@ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #undef TEST_SYSCALL_NAME diff --git a/tests/sendfile.c b/tests/sendfile.c index a03f0902..fd02000a 100644 --- a/tests/sendfile.c +++ b/tests/sendfile.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include #include diff --git a/tests/sendfile64.c b/tests/sendfile64.c index a37d61b2..7384a436 100644 --- a/tests/sendfile64.c +++ b/tests/sendfile64.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include #include diff --git a/tests/set_ptracer_any.c b/tests/set_ptracer_any.c index 51a26759..bc2f90ca 100644 --- a/tests/set_ptracer_any.c +++ b/tests/set_ptracer_any.c @@ -25,9 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif +#include "tests.h" #include #include #ifdef HAVE_PRCTL diff --git a/tests/signalfd.c b/tests/signalfd.c index 5db30180..23833a69 100644 --- a/tests/signalfd.c +++ b/tests/signalfd.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include #include diff --git a/tests/sigreturn.c b/tests/sigreturn.c index ab21fc2c..f6284c80 100644 --- a/tests/sigreturn.c +++ b/tests/sigreturn.c @@ -25,9 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif +#include "tests.h" #include #include diff --git a/tests/stat.c b/tests/stat.c index 356f23ad..17074e37 100644 --- a/tests/stat.c +++ b/tests/stat.c @@ -1,7 +1,4 @@ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #undef TEST_SYSCALL_NAME diff --git a/tests/stat64.c b/tests/stat64.c index 592ba2e2..758a906c 100644 --- a/tests/stat64.c +++ b/tests/stat64.c @@ -1,7 +1,4 @@ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #undef TEST_SYSCALL_NAME diff --git a/tests/statfs.c b/tests/statfs.c index 0c8feabf..5e1cac1f 100644 --- a/tests/statfs.c +++ b/tests/statfs.c @@ -1,6 +1,4 @@ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif +#include "tests.h" #include #include diff --git a/tests/time.c b/tests/time.c index 975ba095..1d3632b7 100644 --- a/tests/time.c +++ b/tests/time.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include #include diff --git a/tests/timer_create.c b/tests/timer_create.c index 05e6f0a5..983aa970 100644 --- a/tests/timer_create.c +++ b/tests/timer_create.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include #include diff --git a/tests/timer_xettime.c b/tests/timer_xettime.c index a7b93c0f..9e12bfe7 100644 --- a/tests/timer_xettime.c +++ b/tests/timer_xettime.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include #include diff --git a/tests/timerfd_xettime.c b/tests/timerfd_xettime.c index 9abac312..e8f40832 100644 --- a/tests/timerfd_xettime.c +++ b/tests/timerfd_xettime.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include #include diff --git a/tests/times-fail.c b/tests/times-fail.c index f3202b1f..c1a3f7e0 100644 --- a/tests/times-fail.c +++ b/tests/times-fail.c @@ -1,7 +1,4 @@ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include #include diff --git a/tests/times.c b/tests/times.c index ffe8aae2..dd0e87e9 100644 --- a/tests/times.c +++ b/tests/times.c @@ -32,10 +32,7 @@ * get some non-zero values returned by times(2). */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include #include diff --git a/tests/truncate.c b/tests/truncate.c index 0e76aa73..7c69059b 100644 --- a/tests/truncate.c +++ b/tests/truncate.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #ifdef __NR_truncate diff --git a/tests/truncate64.c b/tests/truncate64.c index a617c69f..ba7f827b 100644 --- a/tests/truncate64.c +++ b/tests/truncate64.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #ifdef __NR_truncate64 diff --git a/tests/uid.c b/tests/uid.c index 3a502ba2..28e42ed7 100644 --- a/tests/uid.c +++ b/tests/uid.c @@ -25,9 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif +#include "tests.h" #include #include #include diff --git a/tests/uid16.c b/tests/uid16.c index 41729e8a..45d20fb8 100644 --- a/tests/uid16.c +++ b/tests/uid16.c @@ -25,9 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif +#include "tests.h" #include #include #include diff --git a/tests/uid32.c b/tests/uid32.c index 878a48c1..390d623b 100644 --- a/tests/uid32.c +++ b/tests/uid32.c @@ -25,9 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif +#include "tests.h" #include #include #include diff --git a/tests/uio.c b/tests/uio.c index 4a34a7ba..3cf2f4c3 100644 --- a/tests/uio.c +++ b/tests/uio.c @@ -25,9 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif +#include "tests.h" #include #include #include diff --git a/tests/userfaultfd.c b/tests/userfaultfd.c index 6f030dd7..be19dd62 100644 --- a/tests/userfaultfd.c +++ b/tests/userfaultfd.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include #include diff --git a/tests/utimensat.c b/tests/utimensat.c index 26de9ebb..5dae48da 100644 --- a/tests/utimensat.c +++ b/tests/utimensat.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include #include diff --git a/tests/vfork-f.c b/tests/vfork-f.c index 6a7cce49..bcd1cc2d 100644 --- a/tests/vfork-f.c +++ b/tests/vfork-f.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include #include diff --git a/tests/wait.c b/tests/wait.c index a1fc0a85..6fd62cce 100644 --- a/tests/wait.c +++ b/tests/wait.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include #include diff --git a/tests/xattr.c b/tests/xattr.c index e7616f3a..dd940d7a 100644 --- a/tests/xattr.c +++ b/tests/xattr.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #ifdef HAVE_SYS_XATTR_H # include diff --git a/tests/xet_robust_list.c b/tests/xet_robust_list.c index de598c80..db2deaa3 100644 --- a/tests/xet_robust_list.c +++ b/tests/xet_robust_list.c @@ -25,10 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#include "tests.h" #include #include #include -- 2.40.0