kernel32/tests: Add a couple of process helper functions.
commit7e1b131a85f92721a6cc367a63266eed177fd328
authorFrancois Gouget <fgouget@codeweavers.com>
Tue, 24 Mar 2020 12:50:37 +0000 (24 13:50 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 24 Mar 2020 19:31:18 +0000 (24 20:31 +0100)
treea80b3ba4c219f91100ea0db8c08411273dc7f4dc
parent20a2094ecd4112313d30904284a0fdf7ccedcfa7
kernel32/tests: Add a couple of process helper functions.

wait_and_close_child_process() simplifies waiting for the child process
and closing its handles. And because it uses wait_child_process() this
ensures that any error happening in the child process is detected.
reload_child_dump() wraps a cryptic WritePrivateProfileStringA() call
and avoids having to add a comment every time.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/kernel32/tests/process.c