Make an empty unique_id file non-fatal

This isn't supported on all models, so just comment out on failure
instead of fully failing

Change-Id: Id36d5df7c87abbb41f7b6be43abfea82004703a6
Bu işleme şunda yer alıyor:
Kent Russell
2020-06-04 08:27:56 -04:00
ebeveyn 633c852f5d
işleme 8cf44548c0
+10 -7
Dosyayı Görüntüle
@@ -155,14 +155,17 @@ void TestSysInfoRead::Run(void) {
err = rsmi_dev_unique_id_get(i, nullptr);
ASSERT_EQ(err, RSMI_STATUS_NOT_SUPPORTED);
} else {
CHK_ERR_ASRT(err)
IF_VERB(STANDARD) {
std::cout << "\t**GPU Unique ID : " << std::hex << val_ui64 <<
std::endl;
if (err == RSMI_STATUS_SUCCESS) {
IF_VERB(STANDARD) {
std::cout << "\t**GPU Unique ID : " << std::hex << val_ui64 <<
std::endl;
}
// Verify api support checking functionality is working
err = rsmi_dev_unique_id_get(i, nullptr);
ASSERT_EQ(err, RSMI_STATUS_INVALID_ARGS);
} else {
std::cout << "rsmi_dev_unique_id_get() failed with error " << err << std::endl;
}
// Verify api support checking functionality is working
err = rsmi_dev_unique_id_get(i, nullptr);
ASSERT_EQ(err, RSMI_STATUS_INVALID_ARGS);
}
err = rsmi_version_get(&ver);