GNOME Bugzilla – Bug 702647
nm-platform's test-link-linux test fails
Last modified: 2013-06-26 17:44:20 UTC
When running on my system, nm-platform's test-link-linux test fails: /link/bogus: OK /link/loopback: OK /link/internal: ** (/root/NetworkManager/src/platform/tests/.libs/lt-test-link-linux:28230): ERROR **: Attemted to accept a non-received signal 'link-added'. Backtrace:
+ Trace 232102
Notes: It looks like nm-linux-platform no longer sends 'link-added' when a dummy (at least in this case) interface is created.
commit e8c58c957ba130575c3293c8b93ffe4cf97b3865 Author: Dan Williams <dcbw@redhat.com> Date: Wed Jun 19 16:18:29 2013 -0500 platform: specify link-added signal as asynchronous With the move of udev logic into the Linux platform class, the link-added signals are asynchronous, that is they are not emitted during the call to nm_platform_*_add(), but after that call has returned. The Fake implementation still emitted them synchronously, which broke the testcases. Convert the Fake implementation to emit link-added signals asynchronously and update the testcases to handle this. src/platform/nm-fake-platform.c | 42 ++++++++++++++++++++++++++++++++++++++++-- src/platform/nm-platform.c | 3 ++- src/platform/tests/test-common.c | 3 ++- src/platform/tests/test-common.h | 6 ++++-- src/platform/tests/test-link.c | 47 +++++++++++++++++++++++++++++++++-------------- 5 files changed, 81 insertions(+), 20 deletions(-) commit 5c705e643ad6f8ed73a1c38cba14285f07eb1539 Author: Dan Williams <dcbw@redhat.com> Date: Wed Jun 19 12:33:54 2013 -0500 platform: update linux platform testcases for udev/platform merge Since the platform started using udev for link-added signals, we need to run the glib mainloop to wait for the udev signals to come in, instead of expecting them to be emitted immediately. src/platform/tests/test-link.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)