SKIP_MESSAGE("Not supported HAL");
return;
}
- EXPECT_EQ(ret_val, 0) << "Failed to get device serial (" << ret_val << ")";
+ ASSERT_EQ(ret_val, 0) << "Failed to get device serial (" << ret_val << ")";
- if (ret_val == 0 && serial)
- DEBUG_MESSAGE("Serial=%s", serial);
+ DEBUG_MESSAGE("Serial=%s", serial);
}
TEST_F(BOARD, GetDeviceRevisionP)
SKIP_MESSAGE("Not supported HAL");
return;
}
- EXPECT_EQ(ret_val, 0) << "Failed to get device revision (" << ret_val << ")";
+ ASSERT_EQ(ret_val, 0) << "Failed to get device revision (" << ret_val << ")";
- if (ret_val == 0)
- DEBUG_MESSAGE("Revision=%d", revision);
+ DEBUG_MESSAGE("Revision=%d", revision);
}