mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
macros show the correct line
Original commit message from CVS: macros show the correct line
This commit is contained in:
parent
c7f353f294
commit
9402c76bf4
1 changed files with 9 additions and 11 deletions
|
@ -65,17 +65,15 @@ wait_bytes_served (GstElement * sink, guint64 bytes)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
/* FIXME: possibly racy, since if it would write, we may not get it
|
||||||
fail_if_can_read (char *msg, int fd)
|
* immediately ? */
|
||||||
{
|
#define fail_unless_read(msg,fd) \
|
||||||
long avail;
|
G_STMT_START { \
|
||||||
|
long avail; \
|
||||||
/* verify this hasn't triggered a write yet */
|
\
|
||||||
/* FIXME: possibly racy, since if it would write, we may not get it
|
fail_if (ioctl (fd, FIONREAD, &avail) < 0, "%s: could not ioctl", msg); \
|
||||||
* immediately ? */
|
fail_if (avail > 0, "%s: has bytes available to read"); \
|
||||||
fail_if (ioctl (fd, FIONREAD, &avail) < 0, "%s: could not ioctl", msg);
|
} G_STMT_END;
|
||||||
fail_if (avail > 0, "%s: has bytes available to read");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
GST_START_TEST (test_no_clients)
|
GST_START_TEST (test_no_clients)
|
||||||
|
|
Loading…
Reference in a new issue