diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-11-06 22:53:11 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-11-06 22:53:11 -0800 |
commit | 917b6094e7125dd5457b863f3e856880893d5599 (patch) | |
tree | 3cee1f3d25b24b9c97f465c0741b92968154587d /test | |
parent | 9035422ea49f552df09c766dd49175b48528e5a6 (diff) | |
parent | b6a5204c51a4c134f587d358a54fe8d3fb33fc2d (diff) |
Merge pull request #4719 from zhlhahaha:2005
PiperOrigin-RevId: 341172694
Diffstat (limited to 'test')
-rw-r--r-- | test/fuse/linux/stat_test.cc | 10 |
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, |