diff options
author | Guo Yejun <yejun.guo@intel.com> | 2014-06-24 04:14:21 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@intel.com> | 2014-06-24 12:12:35 +0800 |
commit | 7c69e7be62715e06ff34e9d76d841d61e03d4dd5 (patch) | |
tree | 8c2d12788ce0fdb449f57d80460aab48379f750e /utests/utest_generator.py | |
parent | 64e719d98f68147ee1fdc95aac53885f29a8a077 (diff) | |
download | beignet-7c69e7be62715e06ff34e9d76d841d61e03d4dd5.tar.gz |
fix crash when OCL_STRICT_CONFORMANCE is unset
Signed-off-by: Guo Yejun <yejun.guo@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'utests/utest_generator.py')
-rw-r--r-- | utests/utest_generator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utests/utest_generator.py b/utests/utest_generator.py index 8d2f2a89..7522001b 100644 --- a/utests/utest_generator.py +++ b/utests/utest_generator.py @@ -24,7 +24,7 @@ def udebug(ulpSize,returnType): const char* env_strict = getenv("OCL_STRICT_CONFORMANCE"); - if ( strcmp(env_strict, "0") == 0) + if (env_strict == NULL || strcmp(env_strict, "0") == 0) ULPSIZE_FACTOR = 1000; else ULPSIZE_FACTOR = 1; |