diff options
author | Jan Janssen <medhefgo@web.de> | 2021-11-25 12:05:57 +0100 |
---|---|---|
committer | Jan Janssen <medhefgo@web.de> | 2021-11-28 11:46:26 +0100 |
commit | 26e555cbbac3e42c6bf625cb655d2070a9d3a825 (patch) | |
tree | c87cadfa92520041f91191163f3ae86d46d2e536 /src/test/test-acl-util.c | |
parent | test: Add sd_booted condition test to TEST macro (diff) | |
download | systemd-26e555cbbac3e42c6bf625cb655d2070a9d3a825.tar.xz systemd-26e555cbbac3e42c6bf625cb655d2070a9d3a825.zip |
test: Convert to TEST/TEST_RET macros
Note that test-cgroup-mask, test-cgroup-unit-default and test-unit-name will now
report being skipped instead of reporting success if not run under systemd.
Diffstat (limited to 'src/test/test-acl-util.c')
-rw-r--r-- | src/test/test-acl-util.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/test/test-acl-util.c b/src/test/test-acl-util.c index 37c8265268..cdce5ccef1 100644 --- a/src/test/test-acl-util.c +++ b/src/test/test-acl-util.c @@ -14,15 +14,13 @@ #include "tmpfile-util.h" #include "user-util.h" -static int test_add_acls_for_user(void) { +TEST_RET(add_acls_for_user) { char fn[] = "/tmp/test-empty.XXXXXX"; _cleanup_close_ int fd = -1; char *cmd; uid_t uid; int r; - log_info("/* %s */", __func__); - fd = mkostemp_safe(fn); assert_se(fd >= 0); @@ -71,6 +69,4 @@ static int test_add_acls_for_user(void) { return 0; } -int main(int argc, char **argv) { - return test_add_acls_for_user(); -} +DEFINE_TEST_MAIN(LOG_INFO); |