]> granicus.if.org Git - strace/commit
tests: add a test for rt_sigaction output
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 7 Jan 2014 19:32:32 +0000 (19:32 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 8 Jan 2014 17:48:25 +0000 (17:48 +0000)
commit66a15a5bb832032591e57a4fc2c6ec70bce0732a
tree6b71a5ed164eacbc5a94f0a5ebfbfd7b60ef7080
parentb5530a1f8983e5692c37f73b9fa664ee0605d8fb
tests: add a test for rt_sigaction output

Since "struct sigaction" varies between architectures, rt_sigaction
decoding sometimes produces incorrect output.  This test is expected
to catch basic rt_sigaction decoding bugs.

Based on a patch proposed by Chris Dearman.

* tests/sigaction.c: New file.
* tests/sigaction.awk: Likewise.
* tests/sigaction.sh: New test.
* tests/Makefile.am (check_PROGRAMS): Add sigaction.
(TESTS): Add sigaction.sh.
(EXTRA_DIST): Add sigaction.awk.
* tests/.gitignore: Add sigaction.
tests/.gitignore
tests/Makefile.am
tests/sigaction.awk [new file with mode: 0644]
tests/sigaction.c [new file with mode: 0644]
tests/sigaction.sh [new file with mode: 0755]