]> git.ipfire.org Git - thirdparty/systemd.git/commit
tests: turn check if manager cannot be intialized into macro
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 2 Dec 2015 03:35:16 +0000 (22:35 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 2 Dec 2015 14:50:00 +0000 (09:50 -0500)
commit8b3aa503c171acdb9ec63484a8c50e2680d31e79
tree36228a7d30e678c07637c897d39bd6388f8f1ef9
parentade61d3b488c4c8db841c08fd60d051d44b9977f
tests: turn check if manager cannot be intialized into macro

We need to check the same thing in multiple tests. Use a shared
macro to make it easier to update the list of errnos.

Change the errno code for "unitialized cgroup fs" for ENOMEDIUM.
Exec format error looks like something more serious.

This fixes test-execute invocation in mock.
src/basic/cgroup-util.c
src/cgls/cgls.c
src/libsystemd/sd-bus/test-bus-creds.c
src/test/test-engine.c
src/test/test-execute.c
src/test/test-helper.h
src/test/test-path.c
src/test/test-sched-prio.c