Index: lib/sanitizer_common/tests/sanitizer_ioctl_test.cc =================================================================== --- lib/sanitizer_common/tests/sanitizer_ioctl_test.cc +++ lib/sanitizer_common/tests/sanitizer_ioctl_test.cc @@ -78,7 +78,11 @@ // Test decoding KVM ioctl numbers. TEST(SanitizerIoctl, KVM_GET_MP_STATE) { ioctl_desc desc; +#if SANITIZER_MIPS + bool res = ioctl_decode(0x4004ae98U, &desc); +#else bool res = ioctl_decode(0x8004ae98U, &desc); +#endif EXPECT_TRUE(res); EXPECT_EQ(ioctl_desc::WRITE, desc.type); EXPECT_EQ(4U, desc.size); @@ -86,7 +90,11 @@ TEST(SanitizerIoctl, KVM_GET_LAPIC) { ioctl_desc desc; +#if SANITIZER_MIPS + bool res = ioctl_decode(0x4400ae8eU, &desc); +#else bool res = ioctl_decode(0x8400ae8eU, &desc); +#endif EXPECT_TRUE(res); EXPECT_EQ(ioctl_desc::WRITE, desc.type); EXPECT_EQ(1024U, desc.size);