summaryrefslogtreecommitdiff
path: root/tests/ApkVerityTest
diff options
context:
space:
mode:
authorVictor Hsieh <victorhsieh@google.com>2019-11-21 13:23:56 -0800
committerVictor Hsieh <victorhsieh@google.com>2019-11-21 13:39:10 -0800
commit91b8abca2ff1624d21700578a12bb85054761f5f (patch)
tree6c2741141a08f831c7033b30b782969d95be6002 /tests/ApkVerityTest
parentde887b35a64b9a8815115ca900e8e6fdad7b54ec (diff)
block_device_reader: add -D_FILE_OFFSET_BITS=64
This allows pread/pwrite to access big storage. Test: run the command, see expected behavior Bug: 144164497 Change-Id: Ie560da4fc44f8bd10c332629ac9732053990f808
Diffstat (limited to 'tests/ApkVerityTest')
-rw-r--r--tests/ApkVerityTest/block_device_writer/Android.bp8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/ApkVerityTest/block_device_writer/Android.bp b/tests/ApkVerityTest/block_device_writer/Android.bp
index deed3a00d2fe..e7a63e414172 100644
--- a/tests/ApkVerityTest/block_device_writer/Android.bp
+++ b/tests/ApkVerityTest/block_device_writer/Android.bp
@@ -22,7 +22,13 @@ cc_test {
stem: "block_device_writer",
srcs: ["block_device_writer.cpp"],
- cflags: ["-Wall", "-Werror", "-Wextra", "-g"],
+ cflags: [
+ "-D_FILE_OFFSET_BITS=64",
+ "-Wall",
+ "-Werror",
+ "-Wextra",
+ "-g",
+ ],
shared_libs: ["libbase", "libutils"],
test_suites: ["general-tests"],