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