]> granicus.if.org Git - strace/log
strace
8 years agosigreturn.test: use RT_5 signal number instead of RT_2
Dmitry V. Levin [Sun, 10 Jan 2016 22:48:51 +0000 (22:48 +0000)]
sigreturn.test: use RT_5 signal number instead of RT_2

Make the test compatible with musl libc that uses RT_2 internally.

* tests/sigreturn.c (main): Replace RT_2 with RT_5.
* tests/sigreturn.test: Likewise.

Reported-by: Szabolcs Nagy <nsz@port70.net>
8 years agoavr32: wire up accept4 syscall
Dmitry V. Levin [Sun, 10 Jan 2016 21:38:03 +0000 (21:38 +0000)]
avr32: wire up accept4 syscall

* linux/avr32/syscallent.h [321]: Add accept4 entry.

8 years agosparc64: fix names of {s,g}etres{u,g}id syscalls
Dmitry V. Levin [Sat, 9 Jan 2016 22:54:53 +0000 (22:54 +0000)]
sparc64: fix names of {s,g}etres{u,g}id syscalls

* linux/sparc64/syscallent.h [108 ... 111]: Use sparc64 syscall names.

8 years agosparc64: remove sparc32 syscall entries
Dmitry V. Levin [Sat, 9 Jan 2016 22:49:09 +0000 (22:49 +0000)]
sparc64: remove sparc32 syscall entries

* linux/sparc64/syscallent.h [31, 32, 35, 44, 53, 56, 69, 70, 72, 77,
82, 84, 87, 89, 91, 94, 112, 115, 155, 231]: Unassign.

8 years agosparc: remove sparc64 syscall entries
Dmitry V. Levin [Sat, 9 Jan 2016 22:47:25 +0000 (22:47 +0000)]
sparc: remove sparc64 syscall entries

* linux/sparc/syscallent.h [52, 163]: Unassign.

8 years agosparc64: clone syscallent.h from sparc
Dmitry V. Levin [Sat, 9 Jan 2016 22:44:00 +0000 (22:44 +0000)]
sparc64: clone syscallent.h from sparc

* linux/sparc64/syscallent.h: Clone from linux/sparc/syscallent.h.

8 years agosparc: fix mlock2 sysentry, wire up bind, listen, and setsockopt syscalls
Dmitry V. Levin [Sat, 9 Jan 2016 21:50:30 +0000 (21:50 +0000)]
sparc: fix mlock2 sysentry, wire up bind, listen, and setsockopt syscalls

* linux/sparc/syscallent.h [353]: Move mlock2 entry to 356.
[353, 354, 355]: Add bind, listen, and setsockopt entries.
* NEWS: Mention this.

8 years agotests: do not use settimeofday wrapper provided by libc
Dmitry V. Levin [Sat, 9 Jan 2016 01:47:42 +0000 (01:47 +0000)]
tests: do not use settimeofday wrapper provided by libc

Workaround limitations of settimeofday wrapper provided by musl libc.

* tests/xettimeofday.c (main): Call settimeofday using syscall().

Reported-by: Szabolcs Nagy <nsz@port70.net>
8 years agoioctl.test: robustify against libcs invoking ioctl syscall on their own
Dmitry V. Levin [Sat, 9 Jan 2016 01:36:54 +0000 (01:36 +0000)]
ioctl.test: robustify against libcs invoking ioctl syscall on their own

* tests/ioctl.test: Filter out from the log ioctl calls with standard
descriptor arguments.

Reported-by: Szabolcs Nagy <nsz@port70.net>
8 years agoalpha: enhance decoding of getxpid, getxuid, and getxgid syscalls
Dmitry V. Levin [Sat, 9 Jan 2016 00:06:06 +0000 (00:06 +0000)]
alpha: enhance decoding of getxpid, getxuid, and getxgid syscalls

Print the second return value of getxpid, getxuid, and getxgid syscalls
that return a pair of values using the same mechanism as pipe syscall.

* alpha.c: New file.
* Makefile.am (strace_SOURCES): Add it.
* linux/alpha/syscallent.h [20]: Change SEN(getpid) to SEN(getxpid).
[24]: Change SEN(getuid) to SEN(getxuid).
[47]: Change SEN(getgid) to SEN(getxgid).
* NEWS: Mention this enhancement.
* tests/uid.awk: Update for getxgid output change.
* tests/uid.test: Cleanup.
* tests/getxxid.c: New file.
* tests/getxxid.test: New test.
* tests/Makefile.am (check_PROGRAMS): Add getxxid.
(TESTS): Add getxxid.test.
* tests/.gitignore: Add getxxid.

8 years agoCleanup parser of getpagesize syscall
Dmitry V. Levin [Fri, 8 Jan 2016 19:20:05 +0000 (19:20 +0000)]
Cleanup parser of getpagesize syscall

* mem.c (SYS_FUNC(getpagesize)): Decode on entering syscall.

8 years agoalpha: alias getdtablesize to printargs
Dmitry V. Levin [Fri, 8 Jan 2016 18:52:05 +0000 (18:52 +0000)]
alpha: alias getdtablesize to printargs

* linux/dummy.h [ALPHA] (sys_getdtablesize): Alias to printargs.
* desc.c [ALPHA] (SYS_FUNC(getdtablesize)): Remove.

8 years agotests: change text marker in fork-f and vfork-f tests
Dmitry V. Levin [Fri, 8 Jan 2016 00:44:04 +0000 (00:44 +0000)]
tests: change text marker in fork-f and vfork-f tests

Use chdir syscalls instead of pwrite64 syscalls as a method of inserting
text markers into strace output because the former are more portable.

* tests/fork-f.c (logit): Rename to logit_. Use chdir instead of pwrite.
(logit): New macro wrapper around logit_.
(main): Update expected output.
* tests/vfork-f.c: Likewise.
* tests/fork-f.test: Update.

8 years agoFix printing of 32-bit times syscall return value on 64-bit architectures
Dmitry V. Levin [Thu, 7 Jan 2016 14:20:17 +0000 (14:20 +0000)]
Fix printing of 32-bit times syscall return value on 64-bit architectures

This change complements commit v4.9-359-gd93d9f8 by fixing
RVAL_UDECIMAL case.
The only syscall that appears to be affected is the times syscall.

* syscall.c (trace_syscall_exiting): In case of RVAL_UDECIMAL,
when current personality is 32-bit, print 32-bit return code.
* NEWS: Mention this fix.

Reported-by: Steve McIntyre <steve@einval.com>
8 years agotests/vfork-f.c: support platforms without vfork
Dmitry V. Levin [Thu, 7 Jan 2016 01:42:05 +0000 (01:42 +0000)]
tests/vfork-f.c: support platforms without vfork

On some platforms, e.g. hppa glibc, vfork() is implemented using fork
syscall, so the test cannot rely on the parent process remaining blocked
until the child process either terminates or calls execve.

* tests/vfork-f.c (main): Explicitly block the parent until the child
either terminates or calls execve.

8 years agoFix and enhance decoding of sched_[gs]etaffinity syscalls
Dmitry V. Levin [Thu, 7 Jan 2016 00:31:33 +0000 (00:31 +0000)]
Fix and enhance decoding of sched_[gs]etaffinity syscalls

Print cpu_set_t as a set of integers, similar to the way
fd_set is printed as a set of descriptors.

* affinity.c: Include <sched.h>.
(get_cpuset_size): New function.
(print_affinitylist): Rewrite using get_cpuset_size and next_set_bit.
(sched_getaffinity, sched_setaffinity): Print first two args as ints.
* NEWS: Mention this enhancement.
* tests/sched_xetaffinity.c: New file.
* tests/sched_xetaffinity.test: New test.
* tests/Makefile.am (check_PROGRAMS): Add sched_xetaffinity.
(TESTS): Add sched_xetaffinity.test.
* tests/.gitignore: Add sched_xetaffinity.

Reported-by: Joe Korty <joe.korty@ccur.com>
8 years agotests: convert epoll_create1.test from match_grep to match_diff
Dmitry V. Levin [Wed, 6 Jan 2016 16:08:07 +0000 (16:08 +0000)]
tests: convert epoll_create1.test from match_grep to match_diff

* tests/epoll_create1.c (main): Print expected output.
* tests/epoll_create1.test: Use match_diff instead of match_grep.
* tests/epoll_create1.expected: Remove.
* tests/Makefile.am (EXTRA_DIST): Remove epoll_create1.expected.

8 years agotests/struct_flock.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 16:03:23 +0000 (16:03 +0000)]
tests/struct_flock.c: use libtests

* tests/struct_flock.c (create_sample): Return void,
all callers changed.  Use perror_msg_and_fail.
* tests/fcntl.c: Use SKIP_MAIN_UNDEFINED.
* tests/fcntl64.c: Likewise.

8 years agotests/file_handle.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 16:01:46 +0000 (16:01 +0000)]
tests/file_handle.c: use libtests

* tests/file_handle.c: Use SKIP_MAIN_UNDEFINED.
(main): Use assert and perror_msg_and_skip.

8 years agotests/uid32.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 15:58:14 +0000 (15:58 +0000)]
tests/uid32.c: use libtests

* tests/uid32.c: Use SKIP_MAIN_UNDEFINED.

8 years agotests/uid16.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 15:57:45 +0000 (15:57 +0000)]
tests/uid16.c: use libtests

* tests/uid16.c: Use SKIP_MAIN_UNDEFINED.
(main): Use perror_msg_and_skip.

8 years agotests/uid.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 15:57:17 +0000 (15:57 +0000)]
tests/uid.c: use libtests

* tests/uid.c: Use SKIP_MAIN_UNDEFINED.
(main): Use perror_msg_and_skip.

8 years agotests/netlink_unix_diag.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 15:55:12 +0000 (15:55 +0000)]
tests/netlink_unix_diag.c: use libtests

* tests/netlink_unix_diag.c (send_query, check_responses, main):
Use perror_msg_and_skip.

8 years agotests/netlink_inet_diag.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 15:53:45 +0000 (15:53 +0000)]
tests/netlink_inet_diag.c: use libtests

* tests/netlink_inet_diag.c (send_query, check_responses, main):
Use perror_msg_and_skip.

8 years agotests/readdir.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 12:03:57 +0000 (12:03 +0000)]
tests/readdir.c: use libtests

* tests/readdir.c: Use SKIP_MAIN_UNDEFINED.
(main): Use perror_msg_and_skip.

8 years agotests/getdents64.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 12:03:37 +0000 (12:03 +0000)]
tests/getdents64.c: use libtests

* tests/getdents64.c: Use SKIP_MAIN_UNDEFINED.
(main): Use perror_msg_and_skip.

8 years agotests/getdents.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 12:02:55 +0000 (12:02 +0000)]
tests/getdents.c: use libtests

* tests/getdents.c: Use SKIP_MAIN_UNDEFINED.
(main): Use perror_msg_and_skip.

8 years agotests/ipc_shm.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 11:59:58 +0000 (11:59 +0000)]
tests/ipc_shm.c: use libtests

* tests/ipc_shm.c (cleanup): New function.
(main): Use it and perror_msg_and_skip.

8 years agotests/ipc_sem.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 11:59:29 +0000 (11:59 +0000)]
tests/ipc_sem.c: use libtests

* tests/ipc_sem.c (cleanup): New function.
(main): Use it and perror_msg_and_skip.

8 years agotests/ipc_msg.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 11:59:06 +0000 (11:59 +0000)]
tests/ipc_msg.c: use libtests

* tests/ipc_msg.c (cleanup): New function.
(main): Use it and perror_msg_and_skip.

8 years agotests/ipc_msgbuf.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 11:55:13 +0000 (11:55 +0000)]
tests/ipc_msgbuf.c: use libtests

* tests/ipc_msgbuf.c (cleanup): New function.
(main): Use it and perror_msg_and_skip.

8 years agotests/mq.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 11:52:43 +0000 (11:52 +0000)]
tests/mq.c: use libtests

* tests/mq.c: Use SKIP_MAIN_UNDEFINED.
(main): Use perror_msg_and_skip.

8 years agotests/utimensat.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 11:49:27 +0000 (11:49 +0000)]
tests/utimensat.c: use libtests

* tests/utimensat.c: Use SKIP_MAIN_UNDEFINED.
(main): Use assert and perror_msg_and_skip.

8 years agotests/ppoll.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 11:44:32 +0000 (11:44 +0000)]
tests/ppoll.c: use libtests

* tests/ppoll.c (main): Use assert, perror_msg_and_skip,
and perror_msg_and_fail.

8 years agotests/mmsg.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 11:43:08 +0000 (11:43 +0000)]
tests/mmsg.c: use libtests

* tests/mmsg.c: Use SKIP_MAIN_UNDEFINED.
(main): Use perror_msg_and_skip.

8 years agotests/ip_mreq.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 11:42:10 +0000 (11:42 +0000)]
tests/ip_mreq.c: use libtests

* tests/ip_mreq.c: Use SKIP_MAIN_UNDEFINED.
(main): Use perror_msg_and_skip.

8 years agotests/ioctl.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 11:40:00 +0000 (11:40 +0000)]
tests/ioctl.c: use libtests

* tests/ioctl.c: Use SKIP_MAIN_UNDEFINED.
(main): Use %m printf format specifier.

8 years agotests/pipe.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 11:38:05 +0000 (11:38 +0000)]
tests/pipe.c: use libtests

* tests/pipe.c: Use SKIP_MAIN_UNDEFINED.
(main): Use perror_msg_and_fail and perror_msg_and_skip.

8 years agotests/getrandom.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 11:36:54 +0000 (11:36 +0000)]
tests/getrandom.c: use libtests

* tests/getrandom.c: Use SKIP_MAIN_UNDEFINED.
(main): Use perror_msg_and_skip.

8 years agotests/signalfd.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 11:35:23 +0000 (11:35 +0000)]
tests/signalfd.c: use libtests

* tests/signalfd.c: Use SKIP_MAIN_UNDEFINED.
(main): Use perror_msg_and_skip.

8 years agotests/pc.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 11:33:13 +0000 (11:33 +0000)]
tests/pc.c: use libtests

* tests/pc.c (main): Use assert, get_page_size, perror_msg_and_fail,
and perror_msg_and_skip.

8 years agotests/uio.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 11:31:48 +0000 (11:31 +0000)]
tests/uio.c: use libtests

* tests/uio.c: Use SKIP_MAIN_UNDEFINED.

8 years agotests/bpf.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 11:29:16 +0000 (11:29 +0000)]
tests/bpf.c: use libtests

* tests/bpf.c: Use SKIP_MAIN_UNDEFINED.
(main) Use perror_msg_and_skip.

8 years agotests/aio.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 11:27:15 +0000 (11:27 +0000)]
tests/aio.c: use libtests

* tests/aio.c: Use SKIP_MAIN_UNDEFINED.
(main) Use perror_msg_and_skip.

8 years agotests/sched_xetattr.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 11:25:47 +0000 (11:25 +0000)]
tests/sched_xetattr.c: use libtests

* tests/sched_xetattr.c: Use SKIP_MAIN_UNDEFINED.
(main) Use perror_msg_and_skip.

8 years agotests/wait.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 11:23:21 +0000 (11:23 +0000)]
tests/wait.c: use libtests

* tests/wait.c (main): Use perror_msg_and_fail.

8 years agotests/vfork-f.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 11:22:59 +0000 (11:22 +0000)]
tests/vfork-f.c: use libtests

* tests/vfork-f.c (main): Use assert and perror_msg_and_fail.

8 years agotests/fork-f.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 11:22:25 +0000 (11:22 +0000)]
tests/fork-f.c: use libtests

* tests/fork-f.c (main): Use assert and perror_msg_and_fail.

8 years agotests/userfaultfd.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 10:01:20 +0000 (10:01 +0000)]
tests/userfaultfd.c: use libtests

* tests/userfaultfd.c: Use SKIP_MAIN_UNDEFINED.
(main): Use assert.

8 years agotests/mlock2.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 10:00:44 +0000 (10:00 +0000)]
tests/mlock2.c: use libtests

* tests/mlock2.c: Use SKIP_MAIN_UNDEFINED.
(main): Use assert.

8 years agotests/membarrier.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 09:59:46 +0000 (09:59 +0000)]
tests/membarrier.c: use libtests

* tests/membarrier.c: Use SKIP_MAIN_UNDEFINED.
(main): Use assert.

8 years agotests/nanosleep.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 09:56:09 +0000 (09:56 +0000)]
tests/nanosleep.c: use libtests

* tests/nanosleep.c (main): Use assert, perror_msg_and_fail,
and perror_msg_and_skip.

8 years agotests/timerfd_xettime.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 09:51:37 +0000 (09:51 +0000)]
tests/timerfd_xettime.c: use libtests

* tests/timerfd_xettime.c: Use SKIP_MAIN_UNDEFINED.
(main): Use perror_msg_and_skip.

8 years agotests/timer_xettime.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 09:50:44 +0000 (09:50 +0000)]
tests/timer_xettime.c: use libtests

* tests/timer_xettime.c: Use SKIP_MAIN_UNDEFINED.
(main): Use perror_msg_and_skip.

8 years agotests/timer_create.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 09:49:32 +0000 (09:49 +0000)]
tests/timer_create.c: use libtests

* tests/timer_create.c: Use SKIP_MAIN_UNDEFINED.
(main): Use perror_msg_and_skip.

8 years agotests/clock_xettime.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 09:48:05 +0000 (09:48 +0000)]
tests/clock_xettime.c: use libtests

* tests/clock_xettime.c: Use SKIP_MAIN_UNDEFINED.
(main): Use perror_msg_and_skip.

8 years agotests/clock_nanosleep.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 09:46:29 +0000 (09:46 +0000)]
tests/clock_nanosleep.c: use libtests

* tests/clock_nanosleep.c (main): Use assert and perror_msg_and_skip.

8 years agotests/truncate64.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 09:36:00 +0000 (09:36 +0000)]
tests/truncate64.c: use libtests

* tests/truncate64.c: Use SKIP_MAIN_UNDEFINED.
(main): Use assert and perror_msg_and_skip.

8 years agotests/truncate.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 09:35:39 +0000 (09:35 +0000)]
tests/truncate.c: use libtests

* tests/truncate.c: Use SKIP_MAIN_UNDEFINED.
(main): Use assert and perror_msg_and_skip.

8 years agotests/ftruncate64.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 09:35:23 +0000 (09:35 +0000)]
tests/ftruncate64.c: use libtests

* tests/ftruncate64.c: Use SKIP_MAIN_UNDEFINED.
(main): Use assert and perror_msg_and_skip.

8 years agotests/ftruncate.c: use libtests
Dmitry V. Levin [Wed, 6 Jan 2016 09:34:30 +0000 (09:34 +0000)]
tests/ftruncate.c: use libtests

* tests/ftruncate.c: Use SKIP_MAIN_UNDEFINED.
(main): Use assert and perror_msg_and_skip.

8 years agotests/llseek.c: use libtests
Dmitry V. Levin [Tue, 5 Jan 2016 23:28:15 +0000 (23:28 +0000)]
tests/llseek.c: use libtests

* tests/llseek.c: Use SKIP_MAIN_UNDEFINED.
(main): Use assert and perror_msg_and_skip.

8 years agotests/lseek.c: use libtests
Dmitry V. Levin [Tue, 5 Jan 2016 23:27:42 +0000 (23:27 +0000)]
tests/lseek.c: use libtests

* tests/lseek.c: Use SKIP_MAIN_UNDEFINED.
(main): Use assert and perror_msg_and_skip.

8 years agotests/readlinkat.c: use libtests
Dmitry V. Levin [Tue, 5 Jan 2016 23:27:05 +0000 (23:27 +0000)]
tests/readlinkat.c: use libtests

* tests/readlinkat.c: Use SKIP_MAIN_UNDEFINED.
(main): Use perror_msg_and_skip.

8 years agotests/readlink.c: use libtests
Dmitry V. Levin [Tue, 5 Jan 2016 23:26:13 +0000 (23:26 +0000)]
tests/readlink.c: use libtests

* tests/readlink.c: Use SKIP_MAIN_UNDEFINED.
(main): Use perror_msg_and_skip.

8 years agotests/xattr.c: use libtests
Dmitry V. Levin [Tue, 5 Jan 2016 23:18:25 +0000 (23:18 +0000)]
tests/xattr.c: use libtests

* tests/xattr.c: Use SKIP_MAIN_UNDEFINED.
(main): Use perror_msg_and_skip.

8 years agotests/seccomp.c: use libtests
Dmitry V. Levin [Tue, 5 Jan 2016 23:17:29 +0000 (23:17 +0000)]
tests/seccomp.c: use libtests

* tests/seccomp.c: Use SKIP_MAIN_UNDEFINED.
(main): Use perror_msg_and_fail and perror_msg_and_skip.

8 years agotests/restart_syscall.c: use libtests
Dmitry V. Levin [Tue, 5 Jan 2016 23:14:25 +0000 (23:14 +0000)]
tests/restart_syscall.c: use libtests

* tests/restart_syscall.c (main): Use assert, perror_msg_and_fail,
and perror_msg_and_skip.

8 years agotests/inet-cmsg.c: use libtests
Dmitry V. Levin [Tue, 5 Jan 2016 23:13:41 +0000 (23:13 +0000)]
tests/inet-cmsg.c: use libtests

* tests/inet-cmsg.c (main): Use perror_msg_and_skip.

8 years agotests/eventfd.c: use libtests
Dmitry V. Levin [Tue, 5 Jan 2016 23:12:51 +0000 (23:12 +0000)]
tests/eventfd.c: use libtests

* tests/eventfd.c: Use SKIP_MAIN_UNDEFINED.
(main): Use perror_msg_and_skip.

8 years agotests/epoll_create1.c: use libtests
Dmitry V. Levin [Tue, 5 Jan 2016 23:11:48 +0000 (23:11 +0000)]
tests/epoll_create1.c: use libtests

* tests/epoll_create1.c: Use SKIP_MAIN_UNDEFINED.
(main): Use assert and perror_msg_and_skip.

8 years agotests/mmap.c: use libtests
Dmitry V. Levin [Tue, 5 Jan 2016 23:07:59 +0000 (23:07 +0000)]
tests/mmap.c: use libtests

* tests/mmap.c (main): Use get_page_size and perror_msg_and_fail.

8 years agotests/fanotify_mark.c: use libtests
Dmitry V. Levin [Tue, 5 Jan 2016 23:06:14 +0000 (23:06 +0000)]
tests/fanotify_mark.c: use libtests

* tests/fanotify_mark.c: Use SKIP_MAIN_UNDEFINED.

8 years agotests/inet-accept-connect-send-recv.c: use libtests
Dmitry V. Levin [Tue, 5 Jan 2016 23:04:30 +0000 (23:04 +0000)]
tests/inet-accept-connect-send-recv.c: use libtests

* tests/inet-accept-connect-send-recv.c (main): Use perror_msg_and_skip
and perror_msg_and_fail.

8 years agotests/net-accept-connect.c: use libtests
Dmitry V. Levin [Tue, 5 Jan 2016 23:03:26 +0000 (23:03 +0000)]
tests/net-accept-connect.c: use libtests

* tests/net-accept-connect.c (main): Use perror_msg_and_skip
and perror_msg_and_fail.

8 years agotests/unix-pair-send-recv.c: use libtests
Dmitry V. Levin [Tue, 5 Jan 2016 23:02:21 +0000 (23:02 +0000)]
tests/unix-pair-send-recv.c: use libtests

* tests/unix-pair-send-recv.c (main): Use perror_msg_and_skip
and perror_msg_and_fail.

8 years agotests/xselect.c: use libtests
Dmitry V. Levin [Tue, 5 Jan 2016 22:56:30 +0000 (22:56 +0000)]
tests/xselect.c: use libtests

* tests/xselect.c (main): Use assert, perror_msg_and_fail,
and perror_msg_and_skip.

8 years agotests/pselect6.c: use libtests
Dmitry V. Levin [Tue, 5 Jan 2016 22:55:05 +0000 (22:55 +0000)]
tests/pselect6.c: use libtests

* tests/pselect6.c: Use SKIP_MAIN_UNDEFINED.
(main): Use assert, perror_msg_and_fail, and perror_msg_and_skip.

8 years agotests/oldselect.c: use libtests
Dmitry V. Levin [Tue, 5 Jan 2016 22:53:28 +0000 (22:53 +0000)]
tests/oldselect.c: use libtests

* tests/oldselect.c: Use SKIP_MAIN_UNDEFINED.
(main): Use perror_msg_and_fail and perror_msg_and_skip.

8 years agotests/select.c: use libtests
Dmitry V. Levin [Tue, 5 Jan 2016 22:52:39 +0000 (22:52 +0000)]
tests/select.c: use libtests

* tests/select.c: Use SKIP_MAIN_UNDEFINED.

8 years agotests/_newselect.c: use libtests
Dmitry V. Levin [Tue, 5 Jan 2016 22:51:44 +0000 (22:51 +0000)]
tests/_newselect.c: use libtests

* tests/_newselect.c: Use SKIP_MAIN_UNDEFINED.

8 years agotests/fstatat.c: use libtests
Dmitry V. Levin [Tue, 5 Jan 2016 22:41:28 +0000 (22:41 +0000)]
tests/fstatat.c: use libtests

* tests/fstatat.c: Use SKIP_MAIN_UNDEFINED.

8 years agotests/newfstatat.c: use libtests
Dmitry V. Levin [Tue, 5 Jan 2016 22:40:51 +0000 (22:40 +0000)]
tests/newfstatat.c: use libtests

* tests/newfstatat.c: Use SKIP_MAIN_UNDEFINED.

8 years agotests/fstatat64.c: use libtests
Dmitry V. Levin [Tue, 5 Jan 2016 22:40:17 +0000 (22:40 +0000)]
tests/fstatat64.c: use libtests

* tests/fstatat64.c: Use SKIP_MAIN_UNDEFINED.

8 years agotests/xstatx.c: use libtests
Dmitry V. Levin [Tue, 5 Jan 2016 22:37:42 +0000 (22:37 +0000)]
tests/xstatx.c: use libtests

* tests/xstatx.c: Use SKIP_MAIN_UNDEFINED.

8 years agotests/stat64.c: use libtests
Dmitry V. Levin [Tue, 5 Jan 2016 22:35:52 +0000 (22:35 +0000)]
tests/stat64.c: use libtests

* tests/stat64.c: Use SKIP_MAIN_UNDEFINED.

8 years agotests/stat.c: use libtests
Dmitry V. Levin [Tue, 5 Jan 2016 22:35:11 +0000 (22:35 +0000)]
tests/stat.c: use libtests

* tests/stat.c: Use SKIP_MAIN_UNDEFINED.

8 years agotests/lstat64.c: use libtests
Dmitry V. Levin [Tue, 5 Jan 2016 22:34:30 +0000 (22:34 +0000)]
tests/lstat64.c: use libtests

* tests/lstat64.c: Use SKIP_MAIN_UNDEFINED.

8 years agotests/lstat.c: use libtests
Dmitry V. Levin [Tue, 5 Jan 2016 22:33:26 +0000 (22:33 +0000)]
tests/lstat.c: use libtests

* tests/lstat.c: Use SKIP_MAIN_UNDEFINED.

8 years agotests/fstat64.c: use libtests
Dmitry V. Levin [Tue, 5 Jan 2016 22:32:37 +0000 (22:32 +0000)]
tests/fstat64.c: use libtests

* tests/fstat64.c: Use SKIP_MAIN_UNDEFINED.

8 years agotests/fstat.c: use libtests
Dmitry V. Levin [Tue, 5 Jan 2016 22:31:46 +0000 (22:31 +0000)]
tests/fstat.c: use libtests

* tests/fstat.c: Use SKIP_MAIN_UNDEFINED.

8 years agotests/statfs.c: use libtests
Dmitry V. Levin [Tue, 5 Jan 2016 22:28:51 +0000 (22:28 +0000)]
tests/statfs.c: use libtests

* tests/statfs.c (main): Use perror_msg_and_fail.

8 years agotests/xettimeofday.c: use libtests
Dmitry V. Levin [Mon, 4 Jan 2016 23:59:16 +0000 (23:59 +0000)]
tests/xettimeofday.c: use libtests

* tests/xettimeofday.c (main): Use assert and perror_msg_and_skip.

8 years agotests/utime.c: use libtests
Dmitry V. Levin [Mon, 4 Jan 2016 23:58:19 +0000 (23:58 +0000)]
tests/utime.c: use libtests

* tests/utime.c (main): Use assert and perror_msg_and_skip.

8 years agotests/filter-unavailable.c: use libtests
Dmitry V. Levin [Mon, 4 Jan 2016 23:56:03 +0000 (23:56 +0000)]
tests/filter-unavailable.c: use libtests

* tests/filter-unavailable.c (main): Use perror_msg_and_fail.

8 years agotests/scm_rights.c: use libtests
Dmitry V. Levin [Mon, 4 Jan 2016 23:53:31 +0000 (23:53 +0000)]
tests/scm_rights.c: use libtests

* tests/scm_rights.c (main): Use perror_msg_and_fail and perror_msg_and_skip.

8 years agotests/caps.c: use libtests
Dmitry V. Levin [Mon, 4 Jan 2016 23:51:11 +0000 (23:51 +0000)]
tests/caps.c: use libtests

* tests/caps.c (main): Use perror_msg_and_skip.

8 years agotests/rt_sigqueueinfo.c: use libtests
Dmitry V. Levin [Mon, 4 Jan 2016 23:49:32 +0000 (23:49 +0000)]
tests/rt_sigqueueinfo.c: use libtests

* tests/rt_sigqueueinfo.c (main): Use assert and perror_msg_and_skip.

8 years agotests/umount.c: use libtests
Dmitry V. Levin [Mon, 4 Jan 2016 23:47:59 +0000 (23:47 +0000)]
tests/umount.c: use libtests

* tests/umount.c: Use SKIP_MAIN_UNDEFINED.
(main): Use perror_msg_and_fail.

8 years agotests/umount2.c: use libtests
Dmitry V. Levin [Mon, 4 Jan 2016 23:47:59 +0000 (23:47 +0000)]
tests/umount2.c: use libtests

* tests/umount2.c (main): Use perror_msg_and_fail.