NetworkManager/shared
Thomas Haller d10d14d7ba
tests: avoid race condition in nmtstc_service_cleanup()
It seems it can happen that the service is not yet unregistered from the
D-Bus broker, even if we already reaped the PID.

    /builds/NetworkManager/NetworkManager/tools/run-nm-test.sh --called-from-make /builds/NetworkManager/NetworkManager/build    --launch-dbus=auto /builds/NetworkManager/NetworkManager/build/libnm/tests/test-nm-client
    --- stdout ---
    /libnm/device-added:
    nmtst: initialize nmtst_get_rand() with NMTST_SEED_RAND=0
    --- stderr ---
    **
    test:ERROR:../shared/nm-test-utils-impl.c:216:nmtstc_service_cleanup: assertion failed: (!name_exists(info->bus, "org.freedesktop.NetworkManager"))

Workaround by waiting a bit.

We now iterate the main GMainContext, unlike before. But that
should not cause any problems for the test.

(cherry picked from commit 1b8ccacc5d)
2020-11-23 15:26:46 +01:00
..
c-list shared/c-list: reimport 2020-06-03 22:00:56 +02:00
c-rbtree c-rbtree: align CRBTree with CRBNode 2020-10-21 10:41:15 +02:00
c-siphash all: fix minor typos 2020-07-07 11:33:46 +02:00
c-stdaux all: fix minor typos 2020-07-07 11:33:46 +02:00
n-acd all: fix minor typos 2020-07-07 11:33:46 +02:00
n-dhcp4 n-dhcp4: add n_dhcp4_client_lease_get_server_identifier() 2020-08-26 17:08:15 +02:00
nm-glib-aux shared: introduce opaque type NMUtilsUserData for nm_utils_user_data_pack() 2020-10-22 20:54:43 +02:00
nm-std-aux shared: add typedefs for integers for different endianness 2020-09-30 09:49:20 +02:00
nm-udev-aux all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-utils shared/tests: add nmtst_main_context_iterate_until_full() helper 2020-11-23 15:26:46 +01:00
systemd systemd: basic/missing_syscall: fix syscall numbers for mips* 2020-10-08 10:37:25 +02:00
meson.build shared: merge nm-glib-aux/nm-json.[hc] into nm-json-aux.[hc] 2020-07-09 11:47:06 +02:00
nm-default.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-meta-setting.c all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-meta-setting.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-test-libnm-utils.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-test-utils-impl.c tests: avoid race condition in nmtstc_service_cleanup() 2020-11-23 15:26:46 +01:00
nm-version-macros.h.in version: add 1.28 macros 2020-06-30 11:29:04 +02:00