[LTP] [PATCH 01/19] Unify error handling in lib/tst_safe_macros.c

Yang Xu xuyang2018.jy@cn.fujitsu.com
Tue Oct 27 09:22:11 CET 2020


Hi Martin
> - Properly format caller file:line location
> - Pedantically check for invalid syscall return values, don't ignore silently
> - Always return syscall result so that all SAFE_*() functions can be called
>    in test cleanup
It looks good to me,
Acked-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
>
> Signed-off-by: Martin Doucha<mdoucha@suse.cz>
> ---
>   include/tst_safe_macros.h |  30 ++++----
>   lib/tst_safe_macros.c     | 154 ++++++++++++++++++++++++++++++--------
>   2 files changed, 137 insertions(+), 47 deletions(-)





More information about the ltp mailing list