mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-14 15:40:30 +01:00
libnm/tests: fix race in test test_activate_virtual()
ERROR: src/libnm-client-impl/tests/test-nm-client - Bail out! nm:ERROR:src/libnm-client-impl/tests/test-nm-client.c:807:_dev_eth0_1_state_changed_cb: assertion failed (old_state == NM_DEVICE_STATE_PREPARE): (100 == 40)
Fixes: bc9aa72c88 ('libnm/tests: add unit test for checking dangling pointer in libnm')
This commit is contained in:
parent
aafd6cb524
commit
26c43e4bcc
1 changed files with 2 additions and 1 deletions
|
|
@ -804,7 +804,8 @@ _dev_eth0_1_state_changed_cb(NMDevice *device,
|
|||
|
||||
g_assert(NM_IS_DEVICE_VLAN(device));
|
||||
|
||||
g_assert_cmpint(old_state, ==, NM_DEVICE_STATE_PREPARE);
|
||||
g_assert_cmpint(old_state, >=, NM_DEVICE_STATE_PREPARE);
|
||||
g_assert_cmpint(old_state, <=, NM_DEVICE_STATE_ACTIVATED);
|
||||
g_assert_cmpint(new_state, ==, NM_DEVICE_STATE_UNKNOWN);
|
||||
|
||||
arr = nm_device_get_available_connections(device);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue