1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-06 16:59:03 +03:00
systemd/src/test
Lennart Poettering 8e766630f0 tree-wide: drop redundant _cleanup_ macros (#8810)
This drops a good number of type-specific _cleanup_ macros, and patches
all users to just use the generic ones.

In most recent code we abstained from defining type-specific macros, and
this basically removes all those added already, with the exception of
the really low-level ones.

Having explicit macros for this is not too useful, as the expression
without the extra macro is generally just 2ch wider. We should generally
emphesize generic code, unless there are really good reasons for
specific code, hence let's follow this in this case too.

Note that _cleanup_free_ and similar really low-level, libc'ish, Linux
API'ish macros continue to be defined, only the really high-level OO
ones are dropped. From now on this should really be the rule: for really
low-level stuff, such as memory allocation, fd handling and so one, go
ahead and define explicit per-type macros, but for high-level, specific
program code, just use the generic _cleanup_() macro directly, in order
to keep things simple and as readable as possible for the uninitiated.

Note that before this patch some of the APIs (notable libudev ones) were
already used with the high-level macros at some places and with the
generic _cleanup_ macro at others. With this patch we hence unify on the
latter.
2018-04-25 12:31:45 +02:00
..
generate-sym-test.py Mark python scripts executable 2017-05-07 20:16:47 -04:00
meson.build basic: add minimalistic table formatter 2018-04-18 12:51:15 +02:00
test-acl-util.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-af-list.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-alloc-util.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-architecture.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-arphrd-list.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-ask-password-api.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-async.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-barrier.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-bitmap.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-boot-timestamps.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-bpf.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-btrfs.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-calendarspec.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-cap-list.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-capability.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-cgroup-mask.c Merge pull request #8575 from keszybz/non-absolute-paths 2018-04-17 15:54:10 +02:00
test-cgroup-util.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-cgroup.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-clock.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-condition.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-conf-files.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-conf-parser.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-copy.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-cpu-set-util.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-daemon.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-date.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-device-nodes.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-dissect-image.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-dlopen.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-dns-domain.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-ellipsize.c string-util: tweak ellipsation a bit 2018-04-18 12:35:45 +02:00
test-engine.c Merge pull request #8575 from keszybz/non-absolute-paths 2018-04-17 15:54:10 +02:00
test-env-util.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-escape.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-exec-util.c tree-wide: drop spurious newlines (#8764) 2018-04-19 12:13:23 +02:00
test-execute.c tests: compare with correct shell 2018-04-19 11:41:28 +02:00
test-extract-word.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-fd-util.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-fdset.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-fileio.c tree-wide: drop spurious newlines (#8764) 2018-04-19 12:13:23 +02:00
test-firewall-util.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-format-table.c basic: add minimalistic table formatter 2018-04-18 12:51:15 +02:00
test-fs-util.c test: drop unused variables 2018-04-24 15:43:41 +09:00
test-fstab-util.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-gcrypt-util.c test: add a simple smoke test for string_hashsum() 2018-02-05 09:48:38 +01:00
test-glob-util.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-hash.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-hashmap-ordered.awk meson: also indent scripts with 8 spaces 2017-04-25 08:49:16 -04:00
test-hashmap-plain.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-hashmap.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-helper.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-helper.h tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-hexdecoct.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-hostname-util.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-hostname.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-id128.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-in-addr-util.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-install-root.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-install.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-io-util.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-ipcrm.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-job-type.c tree-wide: drop spurious newlines (#8764) 2018-04-19 12:13:23 +02:00
test-journal-importer.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-libudev.c tree-wide: drop redundant _cleanup_ macros (#8810) 2018-04-25 12:31:45 +02:00
test-list.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-locale-util.c tree-wide: drop spurious newlines (#8764) 2018-04-19 12:13:23 +02:00
test-log.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-loopback.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-mount-util.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-namespace.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-netlink-manual.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-ns.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-nss.c tree-wide: drop spurious newlines (#8764) 2018-04-19 12:13:23 +02:00
test-parse-util.c tree-wide: drop spurious newlines (#8764) 2018-04-19 12:13:23 +02:00
test-path-lookup.c tree-wide: drop redundant _cleanup_ macros (#8810) 2018-04-25 12:31:45 +02:00
test-path-util.c util-lib: introduce new empty_or_root() helper (#8746) 2018-04-18 14:20:49 +02:00
test-path.c tree-wide: drop spurious newlines (#8764) 2018-04-19 12:13:23 +02:00
test-prioq.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-proc-cmdline.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-process-util.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-procfs-util.c procfs-util: add APIs to get consumed CPU time and used memory from /proc 2018-02-09 17:32:26 +01:00
test-random-util.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-ratelimit.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-replace-var.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-rlimit-util.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-sched-prio.c Merge pull request #8575 from keszybz/non-absolute-paths 2018-04-17 15:54:10 +02:00
test-seccomp.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-selinux.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-set.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-sigbus.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-signal-util.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-siphash24.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-sizeof.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-sleep.c Merge pull request #8700 from keszybz/hibernation 2018-04-11 10:26:27 +02:00
test-socket-util.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-specifier.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-stat-util.c tree-wide: drop spurious newlines (#8764) 2018-04-19 12:13:23 +02:00
test-strbuf.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-string-util.c tree-wide: drop spurious newlines (#8764) 2018-04-19 12:13:23 +02:00
test-strip-tab-ansi.c string-util: teach strip_tab_ansi() to deal with CSO sequences 2018-04-24 15:58:31 +02:00
test-strv.c tree-wide: drop spurious newlines (#8764) 2018-04-19 12:13:23 +02:00
test-strxcpyx.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-systemd-tmpfiles.py tests: allow passing more than one argument to test-systemd-tmpfiles.py 2017-12-06 19:30:08 +00:00
test-tables.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-terminal-util.c terminal: add internal API to format URLs for display in capable terminals 2018-04-19 18:04:26 +02:00
test-time-util.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-tmpfiles.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-udev.c tree-wide: drop redundant _cleanup_ macros (#8810) 2018-04-25 12:31:45 +02:00
test-uid-range.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-umount.c core/umount: use libmount to enumerate /proc/swaps 2018-03-16 10:12:50 +01:00
test-unaligned.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-unit-file.c tree-wide: drop spurious newlines (#8764) 2018-04-19 12:13:23 +02:00
test-unit-name.c tree-wide: drop spurious newlines (#8764) 2018-04-19 12:13:23 +02:00
test-user-util.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-utf8.c test-utf8: add a smoke test for utf8_console_width() 2018-04-18 12:51:15 +02:00
test-util.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-verbs.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-watch-pid.c Introduce _cleanup_(manager_freep) 2018-03-11 16:33:57 +01:00
test-watchdog.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-web-util.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-xattr-util.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test-xml.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00