From 26bf47a60064fcc42e1b5e7b4b41deb8312d7330 Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Thu, 4 Feb 2021 17:17:27 +0000 Subject: Use memfd_create_compat() in gtests. The memfd_create() call fails on fugu. Test: Rely on TH. Bug: 177816575 Change-Id: I013742aba0c9b41aaf5aa333ddc635fe0ad58e02 --- compiler/common_compiler_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/common_compiler_test.cc') diff --git a/compiler/common_compiler_test.cc b/compiler/common_compiler_test.cc index a8daa99ea5..1aaeac0c80 100644 --- a/compiler/common_compiler_test.cc +++ b/compiler/common_compiler_test.cc @@ -64,7 +64,7 @@ class CommonCompilerTestImpl::CodeAndMetadata { 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); -- cgit v1.2.3-59-g8ed1b