From: Frantisek Sumsal Date: Mon, 25 Dec 2023 11:46:27 +0000 (+0100) Subject: test: use FLAGS_SET() in one more place X-Git-Tag: v256-rc1~1384^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd1b1dae7eff21580ee2a85bee70cc7c5b5e0470;p=thirdparty%2Fsystemd.git test: use FLAGS_SET() in one more place --- diff --git a/src/test/test-acl-util.c b/src/test/test-acl-util.c index eb9678a7d94..331faf1e4b3 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);