Signed-off-by: Guo Yejun <yejun....@intel.com> --- utests/get_cl_info.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/utests/get_cl_info.cpp b/utests/get_cl_info.cpp index bdd7e0c..bd557c3 100644 --- a/utests/get_cl_info.cpp +++ b/utests/get_cl_info.cpp @@ -465,12 +465,14 @@ void compile_spir_binary(void) } //Test is successful if the backend created the file - if( (fp = fopen(spir_file, "r")) == NULL) { + if (cl_check_beignet()) { + if( (fp = fopen(spir_file, "r")) == NULL) { std::cout << "SPIR file creation.. FAILED"; OCL_ASSERT(0); - } else { + } else { fclose(fp); std::cout << "SPIR file created.. SUCCESS"; + } } } MAKE_UTEST_FROM_FUNCTION(compile_spir_binary); -- 1.9.1 _______________________________________________ Beignet mailing list Beignet@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/beignet