Add dont_fail option to not fail entire test on a single failure

[ROCm/rocm_smi_lib commit: dd450e963c]
Цей коміт міститься в:
Chris Freehill
2019-02-09 12:18:49 -06:00
джерело 301aaa28ab
коміт bd3b84e353
6 змінених файлів з 38 додано та 7 видалено
+6 -1
Переглянути файл
@@ -551,7 +551,12 @@ static rsmi_status_t get_frequencies(amd::smi::DevInfoTypes type,
}
}
assert(f->current < f->num_supported);
// Some older drivers will not have the current frequency set
// assert(f->current < f->num_supported);
if (f->current >= f->num_supported) {
return RSMI_STATUS_NOT_SUPPORTED;
}
return RSMI_STATUS_SUCCESS;
CATCH
}