[LTP] [PATCH 3/8] syscalls/waitpid: implement waitpid_ret_test()

Cyril Hrubis chrubis@suse.cz
Mon Aug 15 17:27:39 CEST 2016


Hi!
> Several test cases call waitpid() and then verify the returned
> value and errno set. Moved this code into a function.

One thing I do not like about this that this will report the file and
line from the waitpid_common.h in the test output rather than the
respective line where the check has failed.

We could decleare these as a macros that call the function with __FILE__
and __LINE__ and call the tst_res_() with these instead. But I'm not
sure that this is worth the added complexity...

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list