Re: [PATCH 4/4] tests: check syscall fault injection behavior and error handling

2016-07-28 Thread Dmitry V. Levin
On Wed, Jul 27, 2016 at 08:41:17PM +0200, Nahim El Atmani wrote: > +# include > +#include > +#include > +#include > +# include What a strange indentation. > +static void > +handler(int sig) > +{ > +} This handler doesn't do much, why not use SIG_IGN? > +static void > +occ_at(int raw) > +{

[PATCH 4/4] tests: check syscall fault injection behavior and error handling

2016-07-27 Thread Nahim El Atmani
From: Nahim El Atmani From: Nahim El Atmani * tests/fault.c: New file. * tests/is_x86.c: New file. * tests/fault.test: New test. * tests/fault_parsing.test: Likewise. * tests/Makefile.am (check_PROGRAMS): Add fault, is_x86. (DECODER_TESTS): Add fault.test. (MISC_TESTS): Add fault_parsing.te