This patch works well for me. :p
Thanks Junyan for the quick response.

Thanks
  --Sun, Yi

> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of
> [email protected]
> Sent: Sunday, January 26, 2014 6:16 PM
> To: [email protected]
> Cc: Junyan He
> Subject: [Beignet] [PATCH] Fix the problem by kernel file open in utest
> 
> From: Junyan He <[email protected]>
> 
> Signed-off-by: Junyan He <[email protected]>
> ---
>  utests/utest_file_map.cpp |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/utests/utest_file_map.cpp b/utests/utest_file_map.cpp index
> da3361c..55b7771 100644
> --- a/utests/utest_file_map.cpp
> +++ b/utests/utest_file_map.cpp
> @@ -88,7 +88,7 @@ cl_file_map_open(cl_file_map_t *fm, const char *name)
> 
>    /* Open the file */
>    fm->fd = open(name, O_RDONLY);
> -  if(fm->fd <= 0) {
> +  if(fm->fd < 0) {
>      err = CL_FILE_MAP_FILE_NOT_FOUND;
>      goto error;
>    }
> --
> 1.7.9.5
> 
> _______________________________________________
> Beignet mailing list
> [email protected]
> http://lists.freedesktop.org/mailman/listinfo/beignet
_______________________________________________
Beignet mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/beignet

Reply via email to