On Fri, Sep 04, 2015 at 01:35:01PM +0200, Andreas Pokorny wrote:
> 
> Signed-off-by: Andreas Pokorny <[email protected]>

merged, thanks

Cheers,
   Peter

> ---
>  test/litest.c | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)
> 
> diff --git a/test/litest.c b/test/litest.c
> index 29e764b..38e313e 100644
> --- a/test/litest.c
> +++ b/test/litest.c
> @@ -932,13 +932,15 @@ merge_events(const int *orig, const int *override)
>  static inline void
>  litest_copy_file(const char *dest, const char *src, const char *header)
>  {
> -     int in, out;
> +     int in, out, length;
>  
>       out = open(dest, O_CREAT|O_WRONLY, 0644);
>       litest_assert_int_gt(out, -1);
>  
> -     if (header)
> -             write(out, header, strlen(header));
> +     if (header) {
> +             length = strlen(header);
> +             litest_assert_int_eq(write(out, header, length), length);
> +     }
>  
>       in = open(src, O_RDONLY);
>       litest_assert_int_gt(in, -1);
> -- 
> 2.5.0
> 
_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to