From: Junyan He Date: Sun, 26 Jan 2014 10:16:12 +0000 (+0800) Subject: Fix the problem by kernel file open in utest X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7f483194c6170b4d818f3129fc7b931eab75e436;p=contrib%2Fbeignet.git Fix the problem by kernel file open in utest Signed-off-by: Junyan He Reviewed-by: Zhigang Gong Tested-by: "Sun, Yi" --- 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; }