ARM64:fuse:alian stat struct order on multiarch
fields order in stat struct is different from x86 to arm64. Please refer to x86_64-linux-gnu/bits/stat.h aarch64-linux-gnu/bits/stat.h Signed-off-by: Howard Zhang <howard.zhang@arm.com>
This commit is contained in:
parent
34a6e9576a
commit
b6a5204c51
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue