Use memfd_create_compat() in gtests.

The memfd_create() call fails on fugu.

Test: Rely on TH.
Bug: 177816575
Change-Id: I013742aba0c9b41aaf5aa333ddc635fe0ad58e02
diff --git a/compiler/common_compiler_test.cc b/compiler/common_compiler_test.cc
index a8daa99..1aaeac0 100644
--- a/compiler/common_compiler_test.cc
+++ b/compiler/common_compiler_test.cc
@@ -64,7 +64,7 @@
     const uint32_t capacity = RoundUp(code_offset_ + code_size, kPageSize);
 
     // Create a memfd handle with sufficient capacity.
-    android::base::unique_fd mem_fd(art::memfd_create("test code", /*flags=*/ 0));
+    android::base::unique_fd mem_fd(art::memfd_create_compat("test code", /*flags=*/ 0));
     CHECK_GE(mem_fd.get(), 0);
     int err = ftruncate(mem_fd, capacity);
     CHECK_EQ(err, 0);