summaryrefslogtreecommitdiffstats
path: root/src/test/test-acl-util.c
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2023-12-25 12:46:27 +0100
committerFrantisek Sumsal <frantisek@sumsal.cz>2023-12-25 18:26:59 +0100
commitdd1b1dae7eff21580ee2a85bee70cc7c5b5e0470 (patch)
tree10a04b11631049899f2112ee14f1f2f537884e0e /src/test/test-acl-util.c
parenttest: use ERRNO_IS_NEG_NOT_SUPPORTED() in one more place (diff)
downloadsystemd-dd1b1dae7eff21580ee2a85bee70cc7c5b5e0470.tar.xz
systemd-dd1b1dae7eff21580ee2a85bee70cc7c5b5e0470.zip
test: use FLAGS_SET() in one more place
Diffstat (limited to '')
-rw-r--r--src/test/test-acl-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-acl-util.c b/src/test/test-acl-util.c
index eb9678a7d9..331faf1e4b 100644
--- a/src/test/test-acl-util.c
+++ b/src/test/test-acl-util.c
@@ -82,7 +82,7 @@ TEST(fd_acl_make_read_only) {
(void) fd_add_uid_acl_permission(fd, 1, ACL_READ|ACL_WRITE|ACL_EXECUTE);
assert_se(fstat(fd, &st) >= 0);
- assert_se((st.st_mode & 0200) == 0200);
+ assert_se(FLAGS_SET(st.st_mode, 0200));
cmd = strjoina("getfacl -p ", fn);
assert_se(system(cmd) == 0);