Commit Graph

2939 Commits

Author SHA1 Message Date
christos
54f5f52408 PR/51840: Ngie Cooper: portability fixes for FreeBSD, etc 2017-01-13 19:27:23 +00:00
christos
5d4836fefb PR/51839: Ngie Cooper: reset errno to 0 before calling scalbn* 2017-01-13 19:26:03 +00:00
christos
6660f1abd6 PR/51837: Ngie Cooper: add limits.h for INT_MAX 2017-01-13 19:23:40 +00:00
ozaki-r
a0d1dbdc06 Remove a check added wrongly 2017-01-13 08:11:01 +00:00
ozaki-r
6fe17373ab Add tests for net.inet6.ip6.prefer_tempaddr 2017-01-13 06:30:33 +00:00
ozaki-r
ade7bb4d73 Remove extra checks and cleanup 2017-01-13 06:30:09 +00:00
christos
a1bf1494f3 Bart Simpson's punishment. 2017-01-13 05:18:22 +00:00
christos
f6982a4254 help gcc's numbscullness. 2017-01-13 05:12:44 +00:00
kre
97c5c4a143 Move the #ifndef/#define dance for the (currently) system undefined
PTRACE_VFORK* macros out of a function that is not always compiled
(as they are used in other functions that are.)   Unbreak the build.
2017-01-13 03:01:09 +00:00
kamil
314c5d1975 Add new tests vforkdone[12] in t_ptrace_wait{,3,4,6,id,pid}
vforkdone1:
    Verify that vfork(2) is intercepted by ptrace(2) with EVENT_MASK
    set to PTRACE_VFORK_DONE

vforkdone2:
    Verify that vfork(2) is intercepted by ptrace(2) with EVENT_MASK
    set to PTRACE_FORK | PTRACE_VFORK_DONE

As of now PTRACE_VFORK_DONE is undefined in <sys/ptrace.h>.

Sponsored by <The NetBSD Foundation>
2017-01-12 21:35:53 +00:00
christos
af5b14872f more error checks 2017-01-11 18:15:02 +00:00
christos
2b582fd0b7 fix mismatched paren, also the previous commit should say and check error
for -1.
2017-01-11 18:09:40 +00:00
christos
64565cf3c6 PR/51822: Ngie Cooper: add additional t_memmem check 2017-01-11 18:07:37 +00:00
christos
22f9a6b271 PR/51823: Ngie Cooper: Add output diagnostic if memcmp of the md5 string fails 2017-01-11 18:05:54 +00:00
joerg
77fe1f22f1 Remove LLVM atomic hacks for Sparc. 2017-01-11 12:10:26 +00:00
christos
69ee1aa91e wrap the macro in do/while. 2017-01-11 07:26:17 +00:00
ozaki-r
79ca97d6c8 Cope with tentative state 2017-01-11 07:22:43 +00:00
ozaki-r
285906a96f Add a test case for IPv6 temporary address 2017-01-11 03:15:44 +00:00
ozaki-r
5722f72db4 Check autoconf flag 2017-01-11 03:15:11 +00:00
christos
25f1087ae3 more tests needing <sys/stat.h> 2017-01-10 22:36:29 +00:00
christos
e56151ab6a need <sys/stat.h> 2017-01-10 22:24:29 +00:00
christos
84802888eb need <sys/stat.h> 2017-01-10 22:10:22 +00:00
christos
7c2c9f2e62 add <stdio.h> 2017-01-10 20:35:49 +00:00
maya
674799e3e9 remove duplicate include.
(also move so it is alphabetical, hence the weird diff)
2017-01-10 15:43:59 +00:00
christos
0480186ded PR/51815: Ngie Cooper: don't leak dlopen'ed handle 2017-01-10 15:34:49 +00:00
christos
149b98196c PR/51813: Ngie Cooper: don't leak fd :ttyname_err 2017-01-10 15:33:40 +00:00
christos
91da771057 PR/51812: Ngie Cooper: According to ToG gettimeofday() needs <sys/time.h> 2017-01-10 15:32:46 +00:00
christos
5ab764b7d2 PR/51811: Ngie Cooper: Fix include file portability. 2017-01-10 15:31:11 +00:00
christos
ace355e4b5 PR/51810: Ngie Cooper: don't leak buf 2017-01-10 15:20:44 +00:00
christos
894b1b2f4d PR/51809: Ngie Cooper: fix file descriptor leak 2017-01-10 15:19:52 +00:00
christos
d78006e887 PR/51808: Ngie Cooper: fix leaks, sort includes, check returns 2017-01-10 15:19:00 +00:00
christos
473b6e44f3 PR/51807: Ngie Cooper: disable core file generation in :assert_false,
:assert_true
2017-01-10 15:17:57 +00:00
christos
55dbe9a7ba PR/51806: Ngie Cooper: Only run the vis locale test if VIS_NOLOCALE is defined 2017-01-10 15:16:57 +00:00
christos
92841acfb9 PR/51805: Ngie Cooper: Fix file descriptor leaks 2017-01-10 15:15:09 +00:00
christos
e76b723bff PR/51804: Ngie Cooper: Sort headers; include <sys/stat.h>. On NetBSD,
<sys/stat.h> gets side-loaded from <sys/fcntl.h>. Should be fixed.
2017-01-10 15:13:56 +00:00
ozaki-r
e23687f598 Test netstat -i -a and ifmcstat 2017-01-10 05:55:34 +00:00
ozaki-r
d6b5ca395c Test dumping states before destroying interfaces 2017-01-10 05:55:10 +00:00
kamil
6f12d81bf6 Add new test siginfo6 in t_ptrace_wait{,3,6,6,id,pid} for ports with PT_STEP
siginfo6:
    Verify single PT_STEP call with signal information check

Sponsored by <The NetBSD Foundation>
2017-01-10 05:08:24 +00:00
christos
2cfb67c03e PR/51803: Ngie Cooper: CID 978321: Don't leak openpty() fd. 2017-01-10 01:31:40 +00:00
kamil
d7bca94546 Add new test siginfo5 in t_ptrace_wait{,3,4,6,id,pid}
siginfo5:
    Verify that fork(2) is intercepted by ptrace(2) with EVENT_MASK
    set to PTRACE_FORK and reports correct signal information

Sponsored by <The NetBSD Foundation>
2017-01-10 00:54:22 +00:00
kamil
bbefe54ab6 PT_GET_SIGINFO is no longer PT_SET_SIGINFO conditional in ATF tests
This interface is MI.

Sponsored by <The NetBSD Foundation>
2017-01-09 22:09:20 +00:00
kamil
5b0bbc1439 Add new test siginfo4 in t_ptrace_wait{,3,4,6,id,pid}
siginfo4:
    Detect SIGTRAP TRAP_EXEC from tracee

This test is currently disabled and it will be enabled once
PT_[SG]ET_SIGINFO will land the sources.

Sponsored by <The NetBSD Foundation>
2017-01-06 22:40:06 +00:00
kamil
9e277af53b Add new tests siginfo[123] in t_ptrace_wait{,3,4,6,id,pid}
These tests are for the proposed PT_[GS]ET_SIGINFO interface for ptrace(2),
accessors for signal information that caused tracee to be interrupted.

siginfo1:
    Verify basic PT_GET_SIGINFO call for SIGTRAP from tracee

siginfo2:
    Verify basic PT_GET_SIGINFO and PT_SET_SIGINFO calls without
    modification of SIGINT from tracee

siginfo3:
    Verify basic PT_GET_SIGINFO and PT_SET_SIGINFO calls with
    setting signal to new value

New tests are protected with #ifded and currently disabled in the HEAD branch.
They will be automatically enabled once the final implementation will land the
sources.

Sponsored by <The NetBSD Foundation>
2017-01-04 22:27:20 +00:00
kamil
d36d9d0066 Fix typo in atf_tc_set_md_var(): baic -> basic
No functional change.
2017-01-02 21:02:03 +00:00
christos
f0970fd0b2 mixerctl tests from Charlotte Koch 2017-01-02 15:40:09 +00:00
martin
a6d52bb10f All sparc64 CPUs support per page execute protection. 2016-12-31 11:51:20 +00:00
kamil
664dff8c85 Remove unused macro for ATF_TP_ADD_TC_HAVE_DBREGS
This code is unused.

Sponsored by <The NetBSD Foundation>
2016-12-30 17:29:34 +00:00
ozaki-r
aeb848823f Fix typo 2016-12-26 01:26:25 +00:00
cherry
e6ff351e1a convention about function names for predicate checking:
s/uvm_physseg_valid()/uvm_physseg_valid_p()/

per. matt@
2016-12-22 08:15:20 +00:00
ozaki-r
602dc20a5b Enable DEBUG to see what happened on babylon5 2016-12-21 09:46:39 +00:00