000b601439
* defs.h: Rename tcp_last to printing_tcp. Explain what it means. Remove printtrailer() function. * process.c (sys_exit): Convert printtrailer() call to "printing_tcp = NULL". * strace.c: Add new variable printing_tcp. (cleanup): Convert printtrailer() call to "printing_tcp = NULL". (trace): Likewise. (trace): Fix checks for incomplete line - it was working wrongly if last syscall was exit. (printleader): Set printing_tcp. (printtrailer): Remove this function. * syscall.c: Remove tcp_last variable. (trace_syscall_entering): Don't set printing_tcp, printleader call now does it. (trace_syscall_exiting): Convert printtrailer() call to "printing_tcp = NULL". Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> |
||
---|---|---|
.. | ||
.gitignore | ||
childthread.c | ||
clone.c | ||
fork.c | ||
leaderkill.c | ||
Makefile | ||
mmap_offset_decode.c | ||
procpollable.c | ||
README | ||
sfd.c | ||
sig.c | ||
sigkill_rain.c | ||
skodic.c | ||
threaded_execve.c | ||
vfork.c | ||
wait_must_be_interruptible.c |
To run a test: * Run make * Run resulting executable(s) under strace * Check strace output and/or program's output and exitcode To add a new test: * Add its .c source to this dir * Add it to "all" and "clean" targets in Makefile * Add it to .gitignore file Please spend some time making your testcase understandable. For example, it may print an explanation how it should be used (which strace options to use, and what to look for in strace output). If possible, make it so that your testcase detects error/bug it is intended to test for, and prints error message and exits with 1 if the bug is detected, instead of relying on user to peruse strace output.