mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 11:00:09 +01:00
src/tests: show exit status in test failure of test_nm_utils_kill_child()
This test keeps randomly failing. Rework is, so that we see the actual exit status in the output of the failed test.
This commit is contained in:
parent
a3e75f3294
commit
49c6fa2ba7
1 changed files with 6 additions and 1 deletions
|
|
@ -384,7 +384,12 @@ test_nm_utils_kill_child (void)
|
|||
err = waitpid (child_pid, &exit_status, 0);
|
||||
} while (err == -1 && errno == EINTR);
|
||||
g_assert (err == child_pid);
|
||||
g_assert (WIFEXITED (exit_status) && WEXITSTATUS(exit_status) == 0);
|
||||
if (WIFEXITED (exit_status))
|
||||
g_assert_cmpint (WEXITSTATUS (exit_status), ==, 0);
|
||||
else {
|
||||
g_assert_cmpint (exit_status, ==, 0);
|
||||
g_assert_not_reached ();
|
||||
}
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue