Correct expectation in test

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2022-07-15 16:04:10 +00:00
committed by Compute-Runtime-Automation
parent 023f9df999
commit 5e70afac1a

View File

@ -1428,7 +1428,7 @@ TEST(DrmWrapperTest, WhenGettingDrmParamValueStringThenProperStringIsReturned) {
{DrmParam::ParamCsTimestampFrequency, "I915_PARAM_CS_TIMESTAMP_FREQUENCY"}};
for (auto &ioctlCodeString : ioctlCodeStringMap) {
EXPECT_STREQ(getDrmParamString(ioctlCodeString.first, &ioctlHelper).c_str(), ioctlCodeString.second);
EXPECT_THROW(getDrmParamString(ioctlCodeString.first, nullptr).c_str(), std::runtime_error);
EXPECT_THROW(getDrmParamString(ioctlCodeString.first, nullptr), std::runtime_error);
}
EXPECT_STREQ(getDrmParamString(DrmParam::ParamChipsetId, &ioctlHelper).c_str(), "I915_PARAM_CHIPSET_ID");