end-to-end test: skip TestFtraceProducer for device with an x86-like primary ABI

BUG: 140055722
BUG: 113071420
Change-Id: I025af21c1c0098bd03c3a91c637fb8e925a77cd7
diff --git a/test/end_to_end_integrationtest.cc b/test/end_to_end_integrationtest.cc
index 289f65d..d8a1ffd 100644
--- a/test/end_to_end_integrationtest.cc
+++ b/test/end_to_end_integrationtest.cc
@@ -21,6 +21,8 @@
 #include <random>
 #include <thread>
 
+#include <sys/system_properties.h>
+
 #include "gtest/gtest.h"
 #include "perfetto/base/build_config.h"
 #include "perfetto/base/logging.h"
@@ -47,6 +49,14 @@
 #define TEST_PRODUCER_SOCK_NAME ::perfetto::GetProducerSocket()
 #endif
 
+bool IsX86() {
+  char buf[PROP_VALUE_MAX + 1] = {};
+  int ret = __system_property_get("ro.product.cpu.abi", buf);
+  PERFETTO_CHECK(ret >= 0);
+  std::string abi(buf);
+  return abi.find("x86") != std::string::npos;
+}
+
 // TODO(b/73453011): reenable this on more platforms (including standalone
 // Android).
 #if PERFETTO_BUILDFLAG(PERFETTO_ANDROID_BUILD)
@@ -55,6 +65,9 @@
 #define MAYBE_TestFtraceProducer DISABLED_TestFtraceProducer
 #endif
 TEST(PerfettoTest, MAYBE_TestFtraceProducer) {
+  if (IsX86())
+    return;
+
   base::TestTaskRunner task_runner;
 
   TestHelper helper(&task_runner);