diff options
author | Thomas Haller <thaller@redhat.com> | 2017-10-30 10:59:18 +0100 |
---|---|---|
committer | Francesco Giudici <fgiudici@redhat.com> | 2017-12-12 18:45:35 +0100 |
commit | 3d8f7c814b3bf5918905acffc1048274662481f9 (patch) | |
tree | d6aa88da65e3c385af7b4539c57de37feec88735 | |
parent | ec15892ec54575e4632bb2364ce893675e08e1d9 (diff) |
platform/tests: relax checking for signals in test-link-linux
# random seed: R02S4ca8cfc3dace399c0f15b42411e45d2e
1..48
# Start of link tests
ok 1 /link/bogus
PASS: src/platform/tests/test-link-linux 1 /link/bogus
ok 2 /link/loopback
PASS: src/platform/tests/test-link-linux 2 /link/loopback
nmtst: initialize nmtst_get_rand() with NMTST_SEED_RAND=2697682474
ok 3 /link/internal
PASS: src/platform/tests/test-link-linux 3 /link/internal
ok 4 /link/external
PASS: src/platform/tests/test-link-linux 4 /link/external
# Start of software tests
./tools/run-nm-test.sh: line 193: 7589 Trace/breakpoint trap (core dumped) "${NMTST_DBUS_RUN_SESSION[@]}" "$TEST" "$@"
NMPlatformSignalAssert: src/platform/tests/test-link.c:298, test_slave(): failure to accept signal 0 times: 'link-changed-changed' ifindex 9 (1 times received)
ERROR: src/platform/tests/test-link-linux - too few tests run (expected 48, got 4)
ERROR: src/platform/tests/test-link-linux - exited with status 133 (terminated by signal 5?)
(cherry picked from commit 1ee6dea02f1084f1e36b46f4b4ace109cd7b348d)
-rw-r--r-- | src/platform/tests/test-link.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platform/tests/test-link.c b/src/platform/tests/test-link.c index ed435567f..ed34ef1a9 100644 --- a/src/platform/tests/test-link.c +++ b/src/platform/tests/test-link.c @@ -294,7 +294,7 @@ test_slave (int master, int type, SignalData *master_changed) ensure_no_signal (link_changed); g_assert (nm_platform_link_enslave (NM_PLATFORM_GET, master, ifindex)); accept_signals (link_changed, 0, 2); - ensure_no_signal (master_changed); + accept_signals (master_changed, 0, 2); /* Set slave option */ switch (type) { |