mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-05 22:12:34 +00:00
tests: fdsrc: don't ignore return value of write()
Causes compiler warnings on some systems.
This commit is contained in:
parent
caed34f45f
commit
82abf56e8e
1 changed files with 3 additions and 1 deletions
|
@ -24,6 +24,7 @@
|
|||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include <gst/check/gstcheck.h>
|
||||
|
||||
|
@ -98,7 +99,8 @@ GST_START_TEST (test_num_buffers)
|
|||
|
||||
memset (data, 0, 4096);
|
||||
while (!have_eos) {
|
||||
write (pipe_fd[1], data, 4096);
|
||||
int ret = write (pipe_fd[1], data, 4096);
|
||||
fail_if (ret < 0 && errno != EAGAIN);
|
||||
g_usleep (100);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue