Fix test skip handling while test initialization - device_timer (#667)

This commit is contained in:
Grzegorz Wawiorko
2020-03-10 19:25:49 +01:00
committed by GitHub
parent 4b281af946
commit 51cd792e9e
3 changed files with 23 additions and 5 deletions

View File

@@ -32,12 +32,14 @@ test_definition test_list[] = {
test_status InitCL(cl_device_id device) {
auto version = get_device_cl_version(device);
auto expected_min_version = Version(2, 1);
cl_platform_id platform;
cl_ulong timer_res;
cl_int error;
if (version < Version(2, 1))
if (version < expected_min_version)
{
version_expected_info("Test", expected_min_version.to_string().c_str(), version.to_string().c_str());
return TEST_SKIP;
}