More robust ISA detection on ARM Linux
diff --git a/test/mock/huawei-mate-10.cc b/test/mock/huawei-mate-10.cc
index 94305d7..94379bd 100644
--- a/test/mock/huawei-mate-10.cc
+++ b/test/mock/huawei-mate-10.cc
@@ -595,6 +595,12 @@
#include <huawei-mate-10.h>
int main(int argc, char* argv[]) {
+#if CPUINFO_ARCH_ARM
+ cpuinfo_set_hwcap(UINT32_C(0x0037B0D6));
+ cpuinfo_set_hwcap2(UINT32_C(0x0000001F));
+#elif CPUINFO_ARCH_ARM64
+ cpuinfo_set_hwcap(UINT32_C(0x000000FF));
+#endif
cpuinfo_mock_filesystem(filesystem);
#ifdef __ANDROID__
cpuinfo_mock_android_properties(properties);