[PATCH] tests: add signal_receive.test
Dmitry V. Levin
ldv at altlinux.org
Thu May 26 15:07:50 UTC 2016
On Wed, May 25, 2016 at 03:56:41PM +0800, Fei Jie wrote:
[...]
> diff --git a/tests/signal_receive.c b/tests/signal_receive.c
> new file mode 100644
> index 0000000..73c4ea3
> --- /dev/null
> +++ b/tests/signal_receive.c
> @@ -0,0 +1,67 @@
> +#include "tests.h"
> +#include <signal.h>
> +#include <stdio.h>
> +#include <unistd.h>
> +
> +#if defined ALPHA
> +const char *const signalent[] = {
> +# include "../linux/sparc/signalent.h"
> +};
> +#elif defined HPPA
> +const char *const signalent[] = {
> +# include "../linux/mips/signalent.h"
> +};
> +#elif defined MIPS
> +const char *const signalent[] = {
> +# include "../linux/alpha/signalent.h"
> +};
> +#elif defined SPARC || defined SPARC64
> +const char *const signalent[] = {
> +# include "../linux/hppa/signalent.h"
> +};
> +#else
> +const char *const signalent[] = {
> +# include "../linux/signalent.h"
> +};
> +#endif
These ifdefs shouldn't be needed, plain "signalent.h" should work as well.
If we use signalent.h in the test, we won't be testing signalent.h files,
so I'd rather do without using signalent.h in the test at all.
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20160526/32986dfd/attachment.bin>
More information about the Strace-devel
mailing list