fusefs: fix two small bugs in the tests' expectations

These two errors have been present since the tests' introduction.
Coincidentally every test (I think there's only one) that cares about that
field also works when the field's value is 0.

MFC after:	2 weeks
This commit is contained in:
Alan Somers 2020-05-08 23:00:02 +00:00
parent 9d4e48aebf
commit a22a780752
2 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ void expect_getattr(uint64_t ino, mode_t mode, uint64_t attr_valid, int times,
out.body.attr.attr.mode = mode;
out.body.attr.attr.size = 0;
out.body.attr.attr.uid = uid;
out.body.attr.attr.uid = gid;
out.body.attr.attr.gid = gid;
out.body.attr.attr_valid = attr_valid;
})));
}

View File

@ -85,7 +85,7 @@ void expect_getattr(uint64_t ino, mode_t mode, uint64_t attr_valid, int times,
out.body.attr.attr.mode = mode;
out.body.attr.attr.size = 0;
out.body.attr.attr.uid = uid;
out.body.attr.attr.uid = gid;
out.body.attr.attr.gid = gid;
out.body.attr.attr_valid = attr_valid;
})));
}