diff options
author | Junyan He <junyan.he@linux.intel.com> | 2014-01-26 18:16:12 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@intel.com> | 2014-02-08 12:21:54 +0800 |
commit | 7f483194c6170b4d818f3129fc7b931eab75e436 (patch) | |
tree | 7a47f47bd9252db4eecadeeb06bc6a965644c1c3 /utests/utest_file_map.cpp | |
parent | 48a354adbbd6d193d0cb2dd0754d6ce30c811392 (diff) | |
download | beignet-7f483194c6170b4d818f3129fc7b931eab75e436.tar.gz |
Fix the problem by kernel file open in utest
Signed-off-by: Junyan He <junyan.he@linux.intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Tested-by: "Sun, Yi" <yi.sun@intel.com>
Diffstat (limited to 'utests/utest_file_map.cpp')
-rw-r--r-- | utests/utest_file_map.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utests/utest_file_map.cpp b/utests/utest_file_map.cpp index da3361c0..55b77716 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; } |