mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-17 12:41:38 +02:00
tests: Fix /general/nm_utils_kill_child race
/general/nm_utils_kill_child: ** GLib:ERROR:test-general-with-expect.c:105:test_nm_utils_kill_child_sync_do: Did not see expected message NetworkManager-DEBUG: *kill child process 'test-s-1-1' (*): waiting up to 500 milliseconds for process to terminate normally after sending SIGTERM (15)... Aborted The first test case assumes the child does not go away immediately after being delivered a TERM signal. Add some delay to its teardown code path, so that NM will set up the timeout the test expects.
This commit is contained in:
parent
afbc2571a1
commit
7ad8b8a358
1 changed files with 1 additions and 0 deletions
|
|
@ -188,6 +188,7 @@ test_nm_utils_kill_child (void)
|
|||
char *argv1[] = {
|
||||
"sh",
|
||||
"-c",
|
||||
"trap \"sleep 0.3; exit 10\" EXIT; "
|
||||
"sleep 100000; exit $? #" TEST_TOKEN,
|
||||
NULL,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue