Add TST_PROCESS_STATE_WAIT() API.

This API helps parent process to wait for children
to asleep (for example in pause() call). Which is
need for synchronization in some testcases.

See lib/tests/tst_process_state.c for example usage.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
4 files changed