From 7c763df0a1cf89b2b15bf479a4da9c70cf82d50e Mon Sep 17 00:00:00 2001 From: Grzegorz Wawiorko <35483345+gwawiork@users.noreply.github.com> Date: Thu, 21 Mar 2019 12:04:59 +0100 Subject: [PATCH] Khronos Bug 15728 SPIR 1.2 tests fail when some cases are skipped (#116) --- test_conformance/spir/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test_conformance/spir/main.cpp b/test_conformance/spir/main.cpp index 95fcd8bf..9729db36 100644 --- a/test_conformance/spir/main.cpp +++ b/test_conformance/spir/main.cpp @@ -346,9 +346,11 @@ bool test_suite(cl_device_id device, cl_uint size_t_width, const char *folder, { std::cout << "Failed tests:" << std::endl; std::for_each(ErrList.begin(), ErrList.end(), printError); + std::cout << std::endl; + return false; } std::cout << std::endl; - return tests_passed == number_of_tests; + return true; } static std::string getTestFolder(const std::string& TS)