mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Fix VtsHalDrmV1_0Target test failure
DrmHalVendorFactoryTest.EmptyPluginUUIDNotSupported was failing on 64 bit builds. The test was using an uninitialized hidl_array as the empty UUID which was incorrect. This change initializes the array contents to null values. Test: drm hal tests pass bug: 37172151 Change-Id: I0acb86921f0daceba30fa7879980ce819db64a74
This commit is contained in:
@@ -129,6 +129,7 @@ TEST_F(DrmHalClearkeyFactoryTest, InvalidPluginNotSupported) {
|
||||
*/
|
||||
TEST_F(DrmHalClearkeyFactoryTest, EmptyPluginUUIDNotSupported) {
|
||||
hidl_array<uint8_t, 16> emptyUUID;
|
||||
memset(emptyUUID.data(), 0, 16);
|
||||
EXPECT_FALSE(drmFactory->isCryptoSchemeSupported(emptyUUID));
|
||||
EXPECT_FALSE(cryptoFactory->isCryptoSchemeSupported(emptyUUID));
|
||||
}
|
||||
|
||||
@@ -190,6 +190,7 @@ TEST_P(DrmHalVendorFactoryTest, InvalidPluginNotSupported) {
|
||||
*/
|
||||
TEST_P(DrmHalVendorFactoryTest, EmptyPluginUUIDNotSupported) {
|
||||
hidl_array<uint8_t, 16> emptyUUID;
|
||||
memset(emptyUUID.data(), 0, 16);
|
||||
EXPECT_FALSE(drmFactory->isCryptoSchemeSupported(emptyUUID));
|
||||
EXPECT_FALSE(cryptoFactory->isCryptoSchemeSupported(emptyUUID));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user