[LTP] [PATCH 01/10] lib: Introduce more TEST_* macros
    Cyril Hrubis 
    chrubis@suse.cz
       
    Thu Dec  3 13:30:41 CET 2020
    
    
  
Hi!
> I'd recommend adding TEST_*_IMPL() variant with extra arguments that'll
> allow special handling of ENOSYS, ENOTSUP and possibly also a
> zero-terminated array of allowed errnos. TEST_FD() etc. would then call
> the respective IMPL macro with default arguments:
> 
> #define TEST_FD_IMPL(SCALL, NOSYS_RES, NOTSUP_RES, ERRNO_LIST, ...) \
>     ...
> 
> #define TEST_FD(SCALL, ...) \
>     TEST_FD_IMPL((SCALL), TFAIL, TFAIL, NULL, ##__VA_ARGS__)
I do plan adding something like this later on once I run out of the
simple cases to convert, then I would like to review what is left there
and how to make best interface for the rest of the testcases.
So for now I would like to proceed with the patchset as it is in order
not to make it overly complicated.
-- 
Cyril Hrubis
chrubis@suse.cz
    
    
More information about the ltp
mailing list