diff options
author | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2017-08-25 14:45:52 +0300 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2017-12-09 16:05:28 +0000 |
commit | 45c82ee79823dc7ee3db691ac23cf325c0091756 (patch) | |
tree | fe041184dbca114891d7b134b480c7f8e9c502c6 /tests | |
parent | 91dfc20a049508325a0c23b969b85568c47dd85e (diff) |
tests: udpsrc: fix test_udpsrc to actually run and fix locking
Previously this would silently be skipped because 1600 != 1400
and there is no assertion on this call.
Also unlock check_mutex after use.
https://bugzilla.gnome.org/show_bug.cgi?id=786799
Diffstat (limited to 'tests')
-rw-r--r-- | tests/check/elements/udpsrc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/check/elements/udpsrc.c b/tests/check/elements/udpsrc.c index d3705ebab..ae17c7fc3 100644 --- a/tests/check/elements/udpsrc.c +++ b/tests/check/elements/udpsrc.c @@ -165,7 +165,7 @@ GST_START_TEST (test_udpsrc) if (g_socket_send_to (socket, sa, data, 1600, NULL, NULL) != 1600) goto send_failure; - if (g_socket_send_to (socket, sa, data, 1600, NULL, NULL) != 1400) + if (g_socket_send_to (socket, sa, data, 1400, NULL, NULL) != 1400) goto send_failure; GST_INFO ("sent some packets"); @@ -218,6 +218,8 @@ GST_START_TEST (test_udpsrc) g_list_free (buffers); buffers = NULL; + g_mutex_unlock (&check_mutex); + no_socket: send_failure: |