tests: fix shm test deadlock
authorDoug Nazar <nazard@nazar.ca>
Tue, 13 Apr 2021 10:40:43 +0000 (06:40 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 13 Apr 2021 11:59:35 +0000 (11:59 +0000)
commita1535a4dc363466357fcd1b4a61a4b7b22deb964
tree859a8761a147e819e1fad48edf95499b3e3b4940
parenta930b62afc7125e3186ade07bacf112a7588c053
tests: fix shm test deadlock

Stopping the consumer first would occasionally allow the producer
to fill the shm segment causing it to block in send() and unable
to be stopped.

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