strace/test
Dr. David Alan Gilbert 85db86e6d9 Add a test for the latest select decoding fix
* test/select.c (main): Add a test for nfds larger than FD_SETSIZE.
2013-11-05 23:35:56 +00:00
..
.gitignore Fix select decoding with bogus (huge or negative) nfds. 2013-11-05 11:54:51 +01:00
childthread.c Whitespace cleanups. no code changes. 2011-06-07 12:13:24 +02:00
clone.c test: include headers for used funcs 2013-05-02 22:41:50 +00:00
fork.c test: include headers for used funcs 2013-05-02 22:41:50 +00:00
leaderkill.c Whitespace cleanups. no code changes. 2011-06-07 12:13:24 +02:00
Makefile Fix select decoding with bogus (huge or negative) nfds. 2013-11-05 11:54:51 +01:00
mmap_offset_decode.c Clean up mmap decoding 2013-02-19 11:54:36 +01:00
mtd.c test: add mtd/ubi test helpers 2013-05-02 22:43:47 +00:00
procpollable.c Improve code readability by avoiding assignments inside if() 2011-08-23 12:53:01 +02:00
README Update test/* directory, it seem to be a bit bit-rotted 2011-06-08 14:08:59 +02:00
select.c Add a test for the latest select decoding fix 2013-11-05 23:35:56 +00:00
sfd.c Improve code readability by avoiding assignments inside if() 2011-08-23 12:53:01 +02:00
sig.c test: include headers for used funcs 2013-05-02 22:41:50 +00:00
sigkill_rain.c test: include headers for used funcs 2013-05-02 22:41:50 +00:00
sigreturn.c Improve sigreturn decoding on x86 to show RT signal bits too. 2013-07-16 12:06:25 +02:00
skodic.c test/skodic: make a bit more portable 2013-05-01 14:54:05 +00:00
threaded_execve.c test/threaded_execve: fix on metag 2013-05-01 14:55:54 +00:00
ubi.c test: add mtd/ubi test helpers 2013-05-02 22:43:47 +00:00
vfork.c test: include headers for used funcs 2013-05-02 22:41:50 +00:00
wait_must_be_interruptible.c test: include headers for used funcs 2013-05-02 22:41:50 +00:00
x32_lseek.c Remove wrong x32-specific lseek 2013-02-17 13:17:49 +01:00
x32_mmap.c Fixes in "new" mmap 2013-02-18 03:13:07 +01:00

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.