From 82abf56e8e16d41f4d88481fe3d0d647332c5a3c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 28 Oct 2014 09:28:28 +0000 Subject: [PATCH] tests: fdsrc: don't ignore return value of write() Causes compiler warnings on some systems. --- tests/check/elements/fdsrc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/check/elements/fdsrc.c b/tests/check/elements/fdsrc.c index abcf951..ffe6194 100644 --- a/tests/check/elements/fdsrc.c +++ b/tests/check/elements/fdsrc.c @@ -24,6 +24,7 @@ #include #include #include +#include #include @@ -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); } -- 2.7.4