[LTP] waitpid: new API (part 2)

Stanislav Kholmanskikh stanislav.kholmanskikh@oracle.com
Wed Aug 10 10:40:58 CEST 2016


Hi!

This is the second (and last) part of changes to syscalls/waitpid test cases
with the final aim to substitute wait_for_parent() with the checkpoint interface.

waitpid09 was updated in accordance with

http://lists.linux.it/pipermail/ltp/2016-July/002238.html

In particular:
 * the code from do_exit() was moved to the 'if' block
 * used tst_strerrno() to print set and expected errno values

As for waitpid12. In contrast with

http://lists.linux.it/pipermail/ltp/2016-July/002218.html

I decided to keep the process group logic in order to have uniform coverage:

waitpid06: waitpid(-1, , 0)
waitpid07: waitpid(-1, , WNOHANG)
waitpid08: waitpid(-1, , WUNTRACED)
waitpid11: waitpid(0, , 0), waitpid(-group, , 0)
waitpid12: waitpid(0, , WNOHANG), waitpid(-group, , WNOHANG)
waitpid13: waitpid(0, , WUNTRACED), waitpid(-group, , WUNTRACED)

All other patches are new.

Thanks.
 



More information about the ltp mailing list