Module Name: src Committed By: kamil Date: Thu Nov 3 20:24:18 UTC 2016
Modified Files: src/tests/kernel: t_ptrace.c Log Message: Add FORKEE_ASSERTX()/FORKEE_ASSERT() for forkee; simplify code A child process cannot call atf functions and expect them to magically work like in the parent. The printf(3) messaging from a child will not work out of the box as well without estabilishing a communication protocol with its parent. To not overcomplicate the tests - do not log from a child and use err(3)/errx(3) wrapped with FORKEE_ASSERT()/FORKEE_ASSERTX() as that is guaranteed to work. Simplify and cleanup code of the tests. Sponsored by <The NetBSD Foundation>. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/tests/kernel/t_ptrace.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.