diff options
author | Vladimir Marko <vmarko@google.com> | 2021-02-04 17:17:27 +0000 |
---|---|---|
committer | Vladimir Marko <vmarko@google.com> | 2021-02-05 08:50:17 +0000 |
commit | 26bf47a60064fcc42e1b5e7b4b41deb8312d7330 (patch) | |
tree | d3d4cdd0f4c24efbde0016da395747846eb3e5a4 /compiler/common_compiler_test.cc | |
parent | b5a10be6153d9bf09e4edf4a645da4085b4436bf (diff) |
Use memfd_create_compat() in gtests.
The memfd_create() call fails on fugu.
Test: Rely on TH.
Bug: 177816575
Change-Id: I013742aba0c9b41aaf5aa333ddc635fe0ad58e02
Diffstat (limited to 'compiler/common_compiler_test.cc')
-rw-r--r-- | compiler/common_compiler_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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); |