Fix test skip handling while test initialization (#670)

This commit is contained in:
Grzegorz Wawiorko
2020-03-11 19:14:29 +01:00
committed by GitHub
parent db570f70e5
commit 78fc283069
4 changed files with 14 additions and 6 deletions

View File

@@ -22,7 +22,9 @@
test_status InitCL(cl_device_id device) {
auto version = get_device_cl_version(device);
if (version < Version(2, 0)) {
auto expected_min_version = Version(2, 0);
if (version < expected_min_version) {
version_expected_info("Test", expected_min_version.to_string().c_str(), version.to_string().c_str());
return TEST_SKIP;
}