Module Name: src Committed By: kamil Date: Wed May 23 01:29:43 UTC 2018
Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Refactor the attach[1-8] and race1 ATF t_ptrace_wait* tests Share code in: attach1, attach2 and race1 in the same function body. Rename thsee tests to more verbose names: - tracer_sees_terminaton_before_the_parent - tracer_sysctl_lookup_without_duplicates - unrelated_tracer_sees_terminaton_before_the_parent Rename attach3 to parent_attach_to_its_child. Rename attach4 to child_attach_to_its_parent. Share code in attach5, attach6 and attach7 in the same function body and reanem the tests to: - tracee_sees_its_original_parent_getppid - tracee_sees_its_original_parent_sysctl_kinfo_proc2 - tracee_sees_its_original_parent_procfs_status Reduce the code by around 50%. No functional change intended. All tests pass. Sponsored by <The NetBSD Foundation> To generate a diff of this commit: cvs rdiff -u -r1.50 -r1.51 src/tests/lib/libc/sys/t_ptrace_wait.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.