[LTP] [RFC PATCH 1/1] open_posix_testsuite/pthread_sigmask: fix return value checks

Cyril Hrubis chrubis@suse.cz
Tue May 21 13:46:29 CEST 2019


Hi!
> > The error(3) is GNU extension we cannot use it in a POSIX testsuite as
> > such, I guess that we will have to add custom error reporting functions
> > (in a separate patch) to the open_posix_testsuite/include/posixtest.h
> > header...
> > 
> > Other than that the patch is obviously correct.
> 
> Thanks you want me to add an error(3)-like function there?
> I guess I can do that and then start changing all tests.

If you think that error(3) like API is best fit then we can go ahead and
use it for posix testsuite. You can also think about it a bit and maybe
create something that will fit the purpose slightly better.

Only thing I would have avoided is to give the function names that are
likely to collide with test code. I would expect that there are several
tests that use error as a variable, so if we decide to name the function
that way we should prefix it with pts_ e.g. pts_error().

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list