[LTP] [RFC PATCH 1/4] syscalls/abort01: convert to new library

Cyril Hrubis chrubis@suse.cz
Tue Mar 26 13:51:32 CET 2019


Hi!
> > * Got rid of tst_brk(TFAIL, ...) calls
> >   see: https://github.com/linux-test-project/ltp/issues/462
> 
> Thanks for this, it is good to know. What is the recommended replacement?
> tst_res()?

Yes, tst_res() followed by either return or exit(0) if you need to
actually exit the code flow.

> > 
> > * Used tst_strsig() and tst_strstatus() to print signal and status
> > 
> > * Used tst_res() API in the child
> > 
> > * Got rid of unused variables, etc.
> 
> I am surprised that didn't throw a warning + build error for me.
> other than that, thanks for doing this

That depends on gcc version and mix of warning flags...

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list