dtls: Catch bus errors and fail instead of hanging.
authorJan Schmidt <jan@centricular.com>
Fri, 30 Oct 2020 14:23:36 +0000 (01:23 +1100)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sat, 31 Oct 2020 01:47:06 +0000 (01:47 +0000)
commitc1be9c53e1e8a02fb03e988d35efeb5f404b866c
tree36037ec112fac6352e43f23c94a4aabab2820a4c
parentdbeb5765318ed973376c2b595912e954fc2597d9
dtls: Catch bus errors and fail instead of hanging.

If the DTLS elements fail, they post a bus error and don't signal any
key negotiation. Catch the bus error and fail the test early instead
of letting it hang and time out.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1741>
tests/check/elements/dtls.c