From a22a780752399c96bea63f2ce4d461d3a5f1a12f Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Fri, 8 May 2020 23:00:02 +0000 Subject: [PATCH] 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 --- tests/sys/fs/fusefs/default_permissions.cc | 2 +- tests/sys/fs/fusefs/default_permissions_privileged.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/sys/fs/fusefs/default_permissions.cc b/tests/sys/fs/fusefs/default_permissions.cc index 5ab353109649..da04452125d7 100644 --- a/tests/sys/fs/fusefs/default_permissions.cc +++ b/tests/sys/fs/fusefs/default_permissions.cc @@ -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; }))); } diff --git a/tests/sys/fs/fusefs/default_permissions_privileged.cc b/tests/sys/fs/fusefs/default_permissions_privileged.cc index 924f91ebd6d8..008dc5885a15 100644 --- a/tests/sys/fs/fusefs/default_permissions_privileged.cc +++ b/tests/sys/fs/fusefs/default_permissions_privileged.cc @@ -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; }))); }