]> granicus.if.org Git - strace/commitdiff
tests: include tests.h instead of config.h
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 2 Jan 2016 13:28:43 +0000 (13:28 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 5 Jan 2016 23:17:11 +0000 (23:17 +0000)
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

72 files changed:
tests/_newselect.c
tests/adjtimex.c
tests/aio.c
tests/bpf.c
tests/clock_nanosleep.c
tests/epoll_create1.c
tests/eventfd.c
tests/execveat.c
tests/fanotify_mark.c
tests/fcntl.c
tests/fcntl64.c
tests/file_handle.c
tests/fork-f.c
tests/fstat.c
tests/fstat64.c
tests/fstatat64.c
tests/ftruncate.c
tests/ftruncate64.c
tests/getdents.c
tests/getdents64.c
tests/getrandom.c
tests/ioctl.c
tests/ip_mreq.c
tests/ipc_msgbuf.c
tests/llseek.c
tests/lseek.c
tests/lstat.c
tests/lstat64.c
tests/membarrier.c
tests/memfd_create.c
tests/mlock2.c
tests/mmap.c
tests/mmsg.c
tests/mq.c
tests/newfstatat.c
tests/oldselect.c
tests/pc.c
tests/pipe.c
tests/ppoll.c
tests/readdir.c
tests/readlink.c
tests/readlinkat.c
tests/restart_syscall.c
tests/sched_xetattr.c
tests/seccomp.c
tests/select.c
tests/sendfile.c
tests/sendfile64.c
tests/set_ptracer_any.c
tests/signalfd.c
tests/sigreturn.c
tests/stat.c
tests/stat64.c
tests/statfs.c
tests/time.c
tests/timer_create.c
tests/timer_xettime.c
tests/timerfd_xettime.c
tests/times-fail.c
tests/times.c
tests/truncate.c
tests/truncate64.c
tests/uid.c
tests/uid16.c
tests/uid32.c
tests/uio.c
tests/userfaultfd.c
tests/utimensat.c
tests/vfork-f.c
tests/wait.c
tests/xattr.c
tests/xet_robust_list.c

index 3722ccf377cfe03482cefc18a33d0725964899dd..0c9aeea71704fd8a037fce54958a0ad724c63689 100644 (file)
@@ -1,7 +1,4 @@
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <sys/syscall.h>
 
 #undef TEST_SYSCALL_NAME
index 68e298fe93285e83a0808fb405cf25c2f235ce7b..316cefbb5f5911e6f48636787eb3ee871eb6d73b 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <stdio.h>
 #include <stdint.h>
 #include <sys/timex.h>
index e3a073a295a847026e3fdb36b95c438eac067b63..6f071b37810a58a659a77beaa4bd74b49bc83afb 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <assert.h>
 #include <errno.h>
 #include <inttypes.h>
index daa4e74b87d3aa087d6ae7f7d79a192bdeb4724a..eafd801a2de91a16aed24d1725ce65ce14e1786b 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <stdio.h>
 #include <stdint.h>
 #include <unistd.h>
index ff503c279a7da504df9790bed6b3cee8101e9fd9..1b24f0545ac2514c57cd79361e43ca51c67c2356 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <stdio.h>
 #include <stdint.h>
 #include <signal.h>
index 66bcf9ebdad6a49b4b3eb62366bee34ef960770e..6e5ef471f83c36f86dbf44af1a89535ee59e9541 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <fcntl.h>
 #include <unistd.h>
 #include <sys/syscall.h>
index 5de0c221d9afb08de607535e4b7c6ddaece911f2..ce83f47646641e95a106afe5a5f6b3aa683f2724 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <fcntl.h>
 #include <unistd.h>
 #include <sys/syscall.h>
index 7d7257dd01d00115646541d95776fbf418b320cd..e268d873a3d399ca442c146effd7757c56d08419 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <unistd.h>
 #include <sys/syscall.h>
 
index 7160acdb759f709309cc54eff8337b8a287ddde0..08b4ffefb0a866d4d7c53728b1efac20ec61e162 100644 (file)
@@ -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 <sys/fanotify.h>
 int
index d4df77d86e72f22fc612c45197b8606e4961ed1d..64e7c9ee62143581d8369d1e16e496bea4e7929c 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <sys/syscall.h>
 
 #ifdef __NR_fcntl
index 7ffb07d32fa98f0df7d7443dd0b00b33d07e0df6..427630b60f45ca9bb50be1bd5d40de4f1416c20f 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <sys/syscall.h>
 
 #ifdef __NR_fcntl64
index fb5b93df94a7feb0827009c792ca7a30beaa6a37..f52b6200b13e4d796aeb7421c1f242a9a1d06273 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <alloca.h>
 #include <assert.h>
 #include <errno.h>
index a1a45b9eb62b41d6c75e86b3cd5405a6187ba942..68c88460a46c22c2cfd3642b2a1f6a3a60d23554 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <stdio.h>
 #include <string.h>
 #include <unistd.h>
index b75b5502148c570dc2d3b607bc274718f730cd21..1b315767f247d5d80d942786172fa52751501e5a 100644 (file)
@@ -1,7 +1,4 @@
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <sys/syscall.h>
 
 #undef TEST_SYSCALL_NAME
index e64cf08513c9f3b954d2f2d3141a881c57319bea..44913d36d11a5dd373819387972bfcc3970a61fe 100644 (file)
@@ -1,7 +1,4 @@
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <sys/syscall.h>
 
 #undef TEST_SYSCALL_NAME
index 0facc3f5c3167301a85cd87e6030f54bd54448ce..dbb913f4ab9a115a0f9c0ffc33a6d8817c912e5e 100644 (file)
@@ -1,7 +1,4 @@
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <sys/syscall.h>
 
 #undef TEST_SYSCALL_NAME
index d10a90d8a8078341bc01e0472c74ced9db7335b3..d910e71ef744d6a88a6b10a16c903b992676266c 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <sys/syscall.h>
 
 #ifdef __NR_ftruncate
index ee865b13dbde3e3cf046c2012fd0b9d2ffe76c2f..16b68c2bc44e00eb6f1fe730d9a23c985291614d 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <sys/syscall.h>
 
 #ifdef __NR_ftruncate64
index 6df32024c5cf190452492fd9933875bcad42b482..eee91a97e2e1f9ef99c91aec047426c2abc1e0d5 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <sys/syscall.h>
 
 #ifdef __NR_getdents
index 0f09c138c03425235c63e0a8b33eadabf178866b..6e2b25775a04a24d097596bfdc46131f557e9c30 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <sys/syscall.h>
 
 #ifdef __NR_getdents64
index f15ef74ce3c729d6582ead52e074a1c662764210..4f1406790e7ba71a6c554e2b9bdbea6d83917a10 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <stdio.h>
 #include <unistd.h>
 #include <sys/syscall.h>
index bd3e37d0a6c29d8beb351ba2230651e76b0462b3..3840f696b3e97eaf5c70bf6fe012082ebdffdcce 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <fcntl.h>
 #include <stdio.h>
 #include <stdint.h>
index a83b878769eab73c40bf516a19798b8d294da0f4..4faa11f63c32e82b6c506c9c8fdce05142d570c9 100644 (file)
@@ -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 <assert.h>
 #include <unistd.h>
 #include <sys/socket.h>
index 3e1b1457c5f1bd5202beac74e7701e474625a46d..1cb42fdee44aa02b49f25f3050ca5e8122515c4e 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <sys/ipc.h>
 #include <sys/msg.h>
 #include <sys/stat.h>
index 343ab83e18f36097e3eb46215f571936a2c70ff2..8ff5de9171d7ea4ede221d1f3c2a0212f0870475 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <sys/syscall.h>
 
 #ifdef __NR__llseek
index 7d4bd35cb23fc36b6f552ffd6facb302309d7e78..526a3ae35e1280032b9c72fd19f42c6235b40b53 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <sys/syscall.h>
 
 #ifdef __NR_lseek
index d759dd39b178712f84bd021a15dcb4077c2141de..f477d8e397eec2599d5d94f88556ea91bd9f053f 100644 (file)
@@ -1,7 +1,4 @@
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <sys/syscall.h>
 
 #undef TEST_SYSCALL_NAME
index 4c0713f8c071a7a9fdb494046757e3a7c5ad177e..4ffc7c9fe3c0a2b2f5fa02bd1238de1bf4b9698c 100644 (file)
@@ -1,7 +1,4 @@
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <sys/syscall.h>
 
 #undef TEST_SYSCALL_NAME
index f32d2ec2c91029322f2b1348103f1ad1c7f19e4c..54349bee4169bf646bdcf9ae2b278d84570071c9 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <errno.h>
 #include <stdio.h>
 #include <unistd.h>
index 6b983c378a1b901e1bafa27d8f852c8f558a13a2..98c306412c75c36f745ac1efef2bd648bd2cc9d6 100644 (file)
@@ -1,7 +1,4 @@
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <unistd.h>
 #include <sys/syscall.h>
 
index de5f423d43123a707e5a5dea35c3448553230f85..4b0b97ea90a364d0bd7b0fce41cd30ff1901425c 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <errno.h>
 #include <stdio.h>
 #include <unistd.h>
index 9c6ee27b0c702d16a7c7cc70d2daeb5f9b0faae5..8639ce670988819698bf7e6e06a6df8b9784bb7b 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <stdio.h>
 #include <stdint.h>
 #include <unistd.h>
index 978fdec22312a48a80e64991e8e58e4c261774c8..4553701614dc777e7d9dd1a0ac29a1f13e6be65f 100644 (file)
@@ -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 <sys/socket.h>
 #include <unistd.h>
 #include <fcntl.h>
index bf47ef72703d774372d083fd9aaa07eefbc1fd4b..2953d16c66cdebb831b0fc762e0784e00546cddb 100644 (file)
  * 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 <fcntl.h>
index 10a88e02193b8f06bd450c9a28e3772e018e2914..88ff9830f1598685af6f73732cc3ab83ca8fcd3a 100644 (file)
@@ -1,7 +1,4 @@
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <sys/syscall.h>
 
 #undef TEST_SYSCALL_NAME
index 5f9d5aaa357d01280fc2e7634923b8eeb857b7e0..f2ed9ba7b7819a4a29aea280b39e73af8db49381 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <unistd.h>
 #include <sys/select.h>
 #include <sys/syscall.h>
index 7d64ae0215a69d35ad99c7bd497f721aa5a7d4f8..aef0bc39de8cda56b6fcbb20479be88ce768f731 100644 (file)
@@ -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 <dlfcn.h>
 #include <fcntl.h>
 #include <unistd.h>
index 3f740a0430c1cf285a30a646b48a43423ab3ae93..f7728434dc71c70c1d4096265faad4a66fb44aed 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <stdio.h>
 #include <fcntl.h>
 #include <unistd.h>
index 2b9194b90c76e6d9954e2edcc4f4c58bbc5c56ef..84a957f34de5acdf84cae66bfee55805bf15e899 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <poll.h>
 #include <signal.h>
 #include <unistd.h>
index 1beeda16cbec6f413289d8a4943216073124bc0a..2b161d3e8f37fd5d4b3902e5c692d53d7bd37645 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <sys/syscall.h>
 
 #ifdef __NR_readdir
index d1390f27e8b63a25479c46dc28af650599215181..76bab3196c7855cbbf080c285259864d908b42e4 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <stdio.h>
 #include <unistd.h>
 #include <sys/syscall.h>
index 76d0efd9d7b88479e070fc7ae539f9822293508f..ccfc32dab2ac9b7d2ed2530d6628b5d896d800fc 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <stdio.h>
 #include <unistd.h>
 #include <sys/syscall.h>
index 3989a84ecc5ef3bee84576167fc5b93e28cebcf6..860f1688e85c04d4149dd7305ccb0f21a3ad208e 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <stdio.h>
 #include <stdint.h>
 #include <signal.h>
index 4b060cedc06e4c33cc7ec85005ee0c49698e68c1..02061f4702e364d6148e0c7067748b508f595720 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <stdio.h>
 #include <inttypes.h>
 #include <unistd.h>
index 77d6980507f2735c686bb1dffc6e2b55e56b2019..54a5d057336b5db41f555092aebbf7ddad86fb39 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <stddef.h>
 #include <unistd.h>
 #include <stdio.h>
index 95bc6326bf06d5b4fb8ce9c3e2710e84df266c11..09294662604cadc4ec9d7f3c56c5d2f067f51be1 100644 (file)
@@ -1,7 +1,4 @@
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <sys/syscall.h>
 
 #undef TEST_SYSCALL_NAME
index a03f0902bbeb334549dcdbbd6e8c602ab36868e4..fd02000af347fcb6a1ef9b355f3388dcbc2ec043 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <assert.h>
 #include <errno.h>
 #include <fcntl.h>
index a37d61b27d00c1b331b29e7ee0dd743b2c4aae1b..7384a436d2e948d860758549a98642446651364e 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <assert.h>
 #include <errno.h>
 #include <fcntl.h>
index 51a267595521181404ef7248f955951dd6c9ae6c..bc2f90cab65c0f4eed3b13d5d85bc54f2585914a 100644 (file)
@@ -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 <stdio.h>
 #include <unistd.h>
 #ifdef HAVE_PRCTL
index 5db30180f7265d411538ec3d30be369d09dee3f8..23833a69318f125f7c09b215a393522529a8b1b4 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <fcntl.h>
 #include <signal.h>
 #include <unistd.h>
index ab21fc2c45451b7273789780085bcc4cdc4bcf1f..f6284c80d8224bdcbfd11ee98f4a5cae56c1a0a2 100644 (file)
@@ -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 <stdlib.h>
 #include <signal.h>
 
index 356f23ada5325fb347041c2dafeda5a7964fdb9f..17074e37e29dde9bc9820fc33706b57e50a42504 100644 (file)
@@ -1,7 +1,4 @@
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <sys/syscall.h>
 
 #undef TEST_SYSCALL_NAME
index 592ba2e2b48874d11f3125fc6914f2287eabc5b8..758a906cb899e44a1f82dd8f0ba34b6f4b1a67d9 100644 (file)
@@ -1,7 +1,4 @@
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <sys/syscall.h>
 
 #undef TEST_SYSCALL_NAME
index 0c8feabf8fc9435e1ba79dfa40c9a736109a7c1a..5e1cac1f93e2547831572d2eeb569b9023f2e44b 100644 (file)
@@ -1,6 +1,4 @@
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "tests.h"
 #include <sys/statfs.h>
 #include <assert.h>
 
index 975ba095b33e5aec05d1123004baea61f5acc011..1d3632b7926c81593509c77128a5760e91e5c634 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <time.h>
 #include <stdio.h>
 #include <stdint.h>
index 05e6f0a5432592fafb994cc08757e31bd8b6e2b5..983aa970701a50b9482530b3f5be61dfb4c6ce7d 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <stdio.h>
 #include <signal.h>
 #include <time.h>
index a7b93c0fbd46d9e59963c31ca7c71c75bffa2c0d..9e12bfe7cc989fce2042adda6d130e5844bce568 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <stdio.h>
 #include <stdint.h>
 #include <signal.h>
index 9abac3128e0be50299b41daa41814075fed9f768..e8f408328c8489e74b7839bb7ad78999722dfdd1 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <stdio.h>
 #include <stdint.h>
 #include <time.h>
index f3202b1f9d66370b8aff62f9414c79ba236d4028..c1a3f7e0352b6dd7a401f603a863cdef31e0c911 100644 (file)
@@ -1,7 +1,4 @@
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <stdio.h>
 #include <unistd.h>
 #include <sys/syscall.h>
index ffe8aae28e19b8744d597548f26be9be9c64c70c..dd0e87e9aae083e45860ec5c1e9b93240d23d513 100644 (file)
  * get some non-zero values returned by times(2).
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <sched.h>
 #include <stdio.h>
 #include <time.h>
index 0e76aa73284c064b9a0b5df2b4921d9da4ee9b53..7c69059baaaa5e16ce5d00b49716c9253ba844bf 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <sys/syscall.h>
 
 #ifdef __NR_truncate
index a617c69fd1ee04a6176db664699dcbcc241d3b4f..ba7f827bd6cdfc55d619bfbc54e1779d6bbbc48a 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <sys/syscall.h>
 
 #ifdef __NR_truncate64
index 3a502ba27edad6bd8f8abae46fa6a87b939f1a48..28e42ed73c5fb1785498a08aa6481cdb473ec8ef 100644 (file)
@@ -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 <assert.h>
 #include <stdlib.h>
 #include <unistd.h>
index 41729e8a46d98c47d254e2f521806240fc84bae9..45d20fb8c13f28d43ecae2d898c2547ad63f4a9b 100644 (file)
@@ -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 <assert.h>
 #include <stdlib.h>
 #include <unistd.h>
index 878a48c171d91865aa1ae4d8121b6d7d3a395a0d..390d623bc02a0f8256bb899a3a676379e3be024e 100644 (file)
@@ -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 <assert.h>
 #include <stdlib.h>
 #include <unistd.h>
index 4a34a7ba2a7d3783fbb10478a35f61c84718ce3b..3cf2f4c3abfc2e877a87604c6711ac3b38828753 100644 (file)
@@ -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 <fcntl.h>
 #include <unistd.h>
 #include <sys/uio.h>
index 6f030dd72e73ca5d10e95be842af0f0d0de9eaeb..be19dd62c7593aae449340da04ed94bad1292c88 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
index 26de9ebbd5cc5ef6e50cf34000cc1bb7e5dfc4d3..5dae48da544cd1620ad9b3c6e6c414867d0c8a06 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <stdint.h>
 #include <fcntl.h>
 #include <stdio.h>
index 6a7cce49280ffe68950b6887a2afc6fcd2ffea9f..bcd1cc2d585fc5bfe8d520e193d0b2c83ebe52e9 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <fcntl.h>
 #include <stdio.h>
 #include <string.h>
index a1fc0a85331597a181738e577ab13091d7635969..6fd62cce836e7d3360c4a58d979d1d797e820db7 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <assert.h>
 #include <signal.h>
 #include <unistd.h>
index e7616f3ad4867af659e7faba11b6ac0f85430c02..dd940d7a09d59416da1d2c3e524ecd724f60e2ca 100644 (file)
  * 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 <sys/xattr.h>
 
index de598c8084b3811462ec162a8f9f31f52d8285ff..db2deaa3ce10ea869ddd1bce76931d3971255928 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
 #include <stdio.h>
 #include <unistd.h>
 #include <sys/mman.h>