Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src



Module Name:    src
Committed By:   kamil
Date:           Mon Nov  7 21:09:03 UTC 2016

Modified Files:
        src/distrib/sets/lists/debug: mi
        src/distrib/sets/lists/tests: mi
        src/tests/kernel: Makefile t_ptrace.c
Added Files:
        src/tests/kernel: t_ptrace_wait.c t_ptrace_wait3.c t_ptrace_wait4.c
            t_ptrace_wait6.c t_ptrace_waitid.c t_ptrace_waitpid.c

Log Message:
Add new tests for combination of wait(2) interfaces with ptrace(2)

Move out wait(2) specific tests from t_ptrace and put them to t_ptrace_wait

Add generic code fragments to reuse the same source-code for every member
of the wait(2) family, namely:
 - wait(2)
 - waitpid(2)
 - waitid(2)
 - wait3(2)
 - wait4(2)
 - wait6(2)

Currently in the new test-suite there are the following tests:
 - traceme1
 - traceme2
 - traceme3
 - traceme4
 - attach1

Not all tests are possible to be executed against every wait(2)-like
interface, therefore they will be disabled in such case. Currently this
limits attach1 to waitpid(2), waitid(2), wait4(2), wait6(2), while the
other tests (traceme 1-4) run with all of the interfaces.

The construct of this file is dedicated for addition of new tests in the
close future.

As of now all of the tests pass correctly.

Thanks for Robert Elz for suggestions on improving the code (earlier draft
of this new form).

Sponsored by <The NetBSD Foundation>.


To generate a diff of this commit:
cvs rdiff -u -r1.172 -r1.173 src/distrib/sets/lists/debug/mi
cvs rdiff -u -r1.695 -r1.696 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.40 -r1.41 src/tests/kernel/Makefile
cvs rdiff -u -r1.12 -r1.13 src/tests/kernel/t_ptrace.c
cvs rdiff -u -r0 -r1.1 src/tests/kernel/t_ptrace_wait.c \
    src/tests/kernel/t_ptrace_wait3.c src/tests/kernel/t_ptrace_wait4.c \
    src/tests/kernel/t_ptrace_wait6.c src/tests/kernel/t_ptrace_waitid.c \
    src/tests/kernel/t_ptrace_waitpid.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index