mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-23 08:30:33 +01:00
platform/tests: relax assertion in software_add
Avoid failure
NMPlatformSignalAssert: test-link.c:146, software_add(): failure to accept signal one time: link-changed-changed ifindex 15 (2 times received)
This commit is contained in:
parent
956f0be2f9
commit
068dd41df9
1 changed files with 1 additions and 1 deletions
|
|
@ -143,7 +143,7 @@ software_add (NMLinkType link_type, const char *name)
|
|||
/* when NM is running in the background, it will mess with addrgenmode which might cause additional signals. */
|
||||
accept_signals (parent_changed, 0, 1);
|
||||
} else
|
||||
accept_signal (parent_changed);
|
||||
accept_signals (parent_changed, 1, 2);
|
||||
free_signal (parent_changed);
|
||||
|
||||
return nm_platform_link_vlan_add (NM_PLATFORM_GET, name, parent_ifindex, VLAN_ID, 0, NULL) == NM_PLATFORM_ERROR_SUCCESS;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue