mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-20 18:40:05 +01:00
test: don't assert on the tun link being up to date prior to upping it
Fixes the test run with:
NMTST_SEED_RAND=502735495 src/platform/tests/test-link-linux \
-p /link/software/detect/tun/external
This commit is contained in:
parent
cc472f52fb
commit
ad7b700d6a
1 changed files with 8 additions and 0 deletions
|
|
@ -1070,6 +1070,14 @@ test_software_detect (gconstpointer user_data)
|
||||||
if (lnk)
|
if (lnk)
|
||||||
g_assert (memcmp (plnk, &lnk_tun2, sizeof (NMPlatformLnkTun)) == 0);
|
g_assert (memcmp (plnk, &lnk_tun2, sizeof (NMPlatformLnkTun)) == 0);
|
||||||
|
|
||||||
|
if (i_step == 0) {
|
||||||
|
/* Before we upped the device for the first time the kernel didn't notify
|
||||||
|
* us of the owner set after the link creation:
|
||||||
|
* https://bugzilla.redhat.com/show_bug.cgi?id=1566062
|
||||||
|
*/
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
g_assert (nm_platform_lnk_tun_cmp (plnk, &lnk_tun) == 0);
|
g_assert (nm_platform_lnk_tun_cmp (plnk, &lnk_tun) == 0);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue