summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-11-06 22:53:11 -0800
committergVisor bot <gvisor-bot@google.com>2020-11-06 22:53:11 -0800
commit917b6094e7125dd5457b863f3e856880893d5599 (patch)
tree3cee1f3d25b24b9c97f465c0741b92968154587d /test
parent9035422ea49f552df09c766dd49175b48528e5a6 (diff)
parentb6a5204c51a4c134f587d358a54fe8d3fb33fc2d (diff)
Merge pull request #4719 from zhlhahaha:2005
PiperOrigin-RevId: 341172694
Diffstat (limited to 'test')
-rw-r--r--test/fuse/linux/stat_test.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/fuse/linux/stat_test.cc b/test/fuse/linux/stat_test.cc
index 6f032cac1..73321592b 100644
--- a/test/fuse/linux/stat_test.cc
+++ b/test/fuse/linux/stat_test.cc
@@ -76,8 +76,13 @@ TEST_F(StatTest, StatNormal) {
// Check filesystem operation result.
struct stat expected_stat = {
.st_ino = attr.ino,
+#ifdef __aarch64__
+ .st_mode = expected_mode,
+ .st_nlink = attr.nlink,
+#else
.st_nlink = attr.nlink,
.st_mode = expected_mode,
+#endif
.st_uid = attr.uid,
.st_gid = attr.gid,
.st_rdev = attr.rdev,
@@ -152,8 +157,13 @@ TEST_F(StatTest, FstatNormal) {
// Check filesystem operation result.
struct stat expected_stat = {
.st_ino = attr.ino,
+#ifdef __aarch64__
+ .st_mode = expected_mode,
+ .st_nlink = attr.nlink,
+#else
.st_nlink = attr.nlink,
.st_mode = expected_mode,
+#endif
.st_uid = attr.uid,
.st_gid = attr.gid,
.st_rdev = attr.rdev,